diff options
author | Brad King <brad.king@kitware.com> | 2009-01-29 18:41:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-01-29 18:41:58 (GMT) |
commit | 7ca59f1724cfd177869608cba6d62c21fe7b9829 (patch) | |
tree | 83d604b73f2cc6da66fea79efd02e1f7321c9c37 /Modules | |
parent | f9710e22ecd91653bc4950918f0e2df5349fcfff (diff) | |
download | CMake-7ca59f1724cfd177869608cba6d62c21fe7b9829.zip CMake-7ca59f1724cfd177869608cba6d62c21fe7b9829.tar.gz CMake-7ca59f1724cfd177869608cba6d62c21fe7b9829.tar.bz2 |
BUG: Fix OS X dylib version flags for more linkers
Some OS X linkers want a 'dylib_' prefix on the -compatiblity_version
and -current_version flags while others do not. This passes the flags
through gcc instead since it never wants the prefix and translates the
flags for the linker correctly.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index c0a8600..da54cd7 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -27,8 +27,8 @@ SET(CMAKE_SHARED_MODULE_SUFFIX ".so") SET(CMAKE_MODULE_EXISTS 1) SET(CMAKE_DL_LIBS "") -SET(CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG -Wl,-compatibility_version,) -SET(CMAKE_C_OSX_CURRENT_VERSION_FLAG -Wl,-current_version,) +SET(CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") +SET(CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ") SET(CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}") SET(CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") |