summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-17 20:19:36 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-17 20:19:36 (GMT)
commit60befc2e49c147bb59f6b68a8bbb7d442596cde5 (patch)
treec62190326c47d06a136c9067e6b904e128b0c641 /Modules
parentf9f577255792d567db0536c2a358b371de53bbe8 (diff)
downloadCMake-60befc2e49c147bb59f6b68a8bbb7d442596cde5.zip
CMake-60befc2e49c147bb59f6b68a8bbb7d442596cde5.tar.gz
CMake-60befc2e49c147bb59f6b68a8bbb7d442596cde5.tar.bz2
ENH: Added CMAKE_SHARED_MODULE_LOADER_C_FLAG and CMAKE_SHARED_MODULE_LOADER_CXX_FLAG to support linking plugins to executables.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Darwin.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index da11540..11f76d6 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -9,6 +9,8 @@ SET(CMAKE_CXX_LINK_FLAGS "-headerpad_max_install_names")
SET(CMAKE_PLATFORM_HAS_INSTALLNAME 1)
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -headerpad_max_install_names")
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names")
+SET(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
+SET(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
# setup for universal binaries if sysroot exists