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:20 (GMT)
commitea8fc62194c830f77443a2b26a9f2b1d8c770a6d (patch)
treef397826129e05fcbbd5ec663c1f2f9d574887845 /Modules
parentfbf5a368c9d3a8d3b1caaf77c290524fc41d42ee (diff)
parent1af23c4de2c7d58c06171d70b37794b5c860d5f4 (diff)
downloadCMake-ea8fc62194c830f77443a2b26a9f2b1d8c770a6d.zip
CMake-ea8fc62194c830f77443a2b26a9f2b1d8c770a6d.tar.gz
CMake-ea8fc62194c830f77443a2b26a9f2b1d8c770a6d.tar.bz2
Merge topic 'macos-10.4' into release-3.21
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 ")