summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-08-02 20:14:39 (GMT)
committerBrad King <brad.king@kitware.com>2021-08-02 20:14:39 (GMT)
commit91ba89353618d99ab2d0370d8e903e696e9570b5 (patch)
tree3c03d8de6e561b29eda830dce3ee4f8edcd2889b
parent9029335b526767b50a6f3d06fc04a2ab7de7a381 (diff)
parent1af23c4de2c7d58c06171d70b37794b5c860d5f4 (diff)
downloadCMake-91ba89353618d99ab2d0370d8e903e696e9570b5.zip
CMake-91ba89353618d99ab2d0370d8e903e696e9570b5.tar.gz
CMake-91ba89353618d99ab2d0370d8e903e696e9570b5.tar.bz2
Merge branch 'macos-10.4' into release-3.20
Merge-request: !6426
-rw-r--r--Modules/Platform/Darwin.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index d9a7894..839dc81 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -47,7 +47,9 @@ 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_RUNTIME_C_FLAG "-Wl,-rpath,")
+if(NOT "${_CURRENT_OSX_VERSION}" VERSION_LESS "10.5")
+ set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
+endif()
foreach(lang C CXX OBJC OBJCXX)
set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")