Merge topic 'osx-no-sysroot-for-deployment'

5b4faeef OS X: Allow deployment target with "/" sysroot (#15040)
This commit is contained in:
Brad King 2014-07-29 08:52:13 -04:00 committed by CMake Topic Stage
commit e8698861c6
1 changed files with 2 additions and 0 deletions

View File

@ -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}' "