diff options
author | Brad King <brad.king@kitware.com> | 2003-10-15 14:14:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-10-15 14:14:13 (GMT) |
commit | de27c1207b9d61c604b1e89803dd343498e84911 (patch) | |
tree | 09c6dfa9c80bfce2b4a2195765cfc7f8367d2203 | |
parent | b0e79efddd7d31d3a83464dad5a61b5ce1d8db75 (diff) | |
download | CMake-de27c1207b9d61c604b1e89803dd343498e84911.zip CMake-de27c1207b9d61c604b1e89803dd343498e84911.tar.gz CMake-de27c1207b9d61c604b1e89803dd343498e84911.tar.bz2 |
ERR: Old -flat_namespace -undefined suppress flags for CMAKE_SHARED_MODULE_CREATE_C_FLAGS should be included when CMAKE_BACKWARDS_COMPATIBILITY is 1.6 or lower.
-rw-r--r-- | Modules/Platform/Darwin.cmake | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index 9ccf817..a04cb05 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -1,12 +1,17 @@ -SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") -SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib") -SET(CMAKE_SHARED_MODULE_PREFIX "lib") -SET(CMAKE_SHARED_MODULE_SUFFIX ".so") +SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") +SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib") +SET(CMAKE_SHARED_MODULE_PREFIX "lib") +SET(CMAKE_SHARED_MODULE_SUFFIX ".so") SET(CMAKE_MODULE_EXISTS 1) SET(CMAKE_DL_LIBS "") SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib") SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle") +IF("${CMAKE_BACKWARDS_COMPATIBILITY}" MATCHES "^1\\.[0-6]$") + SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS + "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined suppress") +ENDIF("${CMAKE_BACKWARDS_COMPATIBILITY}" MATCHES "^1\\.[0-6]$") + SET(CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") |