diff options
author | Brad King <brad.king@kitware.com> | 2007-04-17 20:19:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-04-17 20:19:36 (GMT) |
commit | 60befc2e49c147bb59f6b68a8bbb7d442596cde5 (patch) | |
tree | c62190326c47d06a136c9067e6b904e128b0c641 /Modules | |
parent | f9f577255792d567db0536c2a358b371de53bbe8 (diff) | |
download | CMake-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.cmake | 2 |
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 |