summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-29 12:52:13 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-29 12:52:13 (GMT)
commite8698861c69c3159aaa353af1e016aa7a387283a (patch)
tree7bd0ffded45ddf6b94b41679902f3b3a11143aef /Modules
parent35746899a32de0b4f4ee2c0586d399a06b633421 (diff)
parent5b4faeefe36fd775fd60f98aedf0cc35202f99f4 (diff)
downloadCMake-e8698861c69c3159aaa353af1e016aa7a387283a.zip
CMake-e8698861c69c3159aaa353af1e016aa7a387283a.tar.gz
CMake-e8698861c69c3159aaa353af1e016aa7a387283a.tar.bz2
Merge topic 'osx-no-sysroot-for-deployment'
5b4faeef OS X: Allow deployment target with "/" sysroot (#15040)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Darwin.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index e25df1e..e5c5f36 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -70,6 +70,8 @@ if(CMAKE_OSX_DEPLOYMENT_TARGET)
set(_sdk_ver "${CMAKE_MATCH_1}")
elseif("${_CMAKE_OSX_SYSROOT_ORIG}" MATCHES "^macosx([0-9]+\\.[0-9]+)$")
set(_sdk_ver "${CMAKE_MATCH_1}")
+ elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/")
+ set(_sdk_ver "${_CURRENT_OSX_VERSION}")
else()
message(FATAL_ERROR
"CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' "