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:55 (GMT) |
commit | 196376a33eaa01b76935c174cdefee1ad842604c (patch) | |
tree | 0c3ab6e13a090292d9b448e7c83842baa1c4dc7a /Modules | |
parent | 9780079ba6753cf63584778f8a8677274f8f782d (diff) | |
parent | 4aed96e2309e64571aabfda263b3ca4c4f62d619 (diff) | |
download | CMake-196376a33eaa01b76935c174cdefee1ad842604c.zip CMake-196376a33eaa01b76935c174cdefee1ad842604c.tar.gz CMake-196376a33eaa01b76935c174cdefee1ad842604c.tar.bz2 |
Merge topic 'ios-rpath-linker-flag' into release-3.20
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')
-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 ") |