diff options
author | Brad King <brad.king@kitware.com> | 2021-04-07 14:06:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-04-07 14:06:56 (GMT) |
commit | 69685003529977860f1a1216373cc60ce7a3826e (patch) | |
tree | 682bae7790a4cf4a00e9451ac781356fe0db6738 /Modules/Platform | |
parent | a1847844f0fe9b964c91fc5113222b5d5edfd554 (diff) | |
parent | 4aed96e2309e64571aabfda263b3ca4c4f62d619 (diff) | |
download | CMake-69685003529977860f1a1216373cc60ce7a3826e.zip CMake-69685003529977860f1a1216373cc60ce7a3826e.tar.gz CMake-69685003529977860f1a1216373cc60ce7a3826e.tar.bz2 |
Merge topic 'ios-rpath-linker-flag'
4aed96e230 Apple: Set CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG on non-macOS too
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5980
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index 80595ea..d9a7894 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -47,11 +47,7 @@ set(CMAKE_SHARED_MODULE_PREFIX "lib") set(CMAKE_SHARED_MODULE_SUFFIX ".so") set(CMAKE_MODULE_EXISTS 1) set(CMAKE_DL_LIBS "") - -# Enable rpath support for 10.5 and greater where it is known to work. -if("${DARWIN_MAJOR_VERSION}" GREATER 8) - set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") -endif() +set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") foreach(lang C CXX OBJC OBJCXX) set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") |