diff options
author | Benjamin Reed <ranger@befunk.com> | 2008-01-13 17:22:53 +0000 |
---|---|---|
committer | Benjamin Reed <ranger@befunk.com> | 2008-01-13 17:22:53 +0000 |
commit | 415b2562488a1bf8afb4e1036df393afc4cee352 (patch) | |
tree | 74563b55137b723d5d6f62064f0759a0db5b7234 | |
parent | 91d93811994077671eb7470e3c4f9610f7e42813 (diff) | |
download | extra-cmake-modules-415b2562488a1bf8afb4e1036df393afc4cee352.tar.gz extra-cmake-modules-415b2562488a1bf8afb4e1036df393afc4cee352.tar.bz2 |
backport FULL_RPATH osx fix to 4.0
svn path=/branches/KDE/4.0/kdelibs/; revision=760907
-rw-r--r-- | modules/FindKDE4Internal.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index c7701e7c..bab5fb96 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -710,7 +710,13 @@ endif (WIN32) # setup default RPATH/install_name handling, may be overridden by KDE4_HANDLE_RPATH_FOR_[LIBRARY|EXECUTABLE] # default is to build with RPATH for the install dir, so it doesn't need to relink if (UNIX) - option(KDE4_USE_ALWAYS_FULL_RPATH "If set to TRUE, also libs and plugins will be linked with the full RPATH, which will usually make them work better, but make install will take longer." ON) + if (NOT APPLE) + set( _KDE4_DEFAULT_USE_FULL_RPATH ON ) + else (NOT APPLE) + set( _KDE4_DEFAULT_USE_FULL_RPATH OFF ) + endif (NOT APPLE) + + option(KDE4_USE_ALWAYS_FULL_RPATH "If set to TRUE, also libs and plugins will be linked with the full RPATH, which will usually make them work better, but make install will take longer." _KDE4_DEFAULT_USE_FULL_RPATH) set( _KDE4_PLATFORM_INCLUDE_DIRS) |