summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-08-06 14:47:24 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-08-06 14:48:21 (GMT)
commit50df0c411deaf187491a7f8579c8fdfcafce8d94 (patch)
tree59c481e2389a7432893b15ff0a54b65164844be0 /Modules
parent1df8c88ea2d93c7dd41c759dc8eb30a42f8c0ef9 (diff)
parent1af23c4de2c7d58c06171d70b37794b5c860d5f4 (diff)
downloadCMake-50df0c411deaf187491a7f8579c8fdfcafce8d94.zip
CMake-50df0c411deaf187491a7f8579c8fdfcafce8d94.tar.gz
CMake-50df0c411deaf187491a7f8579c8fdfcafce8d94.tar.bz2
Merge topic 'macos-10.4'
1af23c4de2 macOS: Restore support for Mac OS X 10.4 (Tiger) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6426
Diffstat (limited to 'Modules')
-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 ")