summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-17 14:15:02 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-10-17 14:15:02 (GMT)
commit69be82394dcd9044c9aa392e0aa078a6e09ec460 (patch)
tree46bd7008c8d232d1fc3f1204b42f24e6689c1ce5 /Modules/Platform
parent5fdee6d402798545280f8dc2955b21d4fe61605c (diff)
parente8bafb6fcbb46bad4dfcb8dab1347c8e5f9a8090 (diff)
downloadCMake-69be82394dcd9044c9aa392e0aa078a6e09ec460.zip
CMake-69be82394dcd9044c9aa392e0aa078a6e09ec460.tar.gz
CMake-69be82394dcd9044c9aa392e0aa078a6e09ec460.tar.bz2
Merge topic 'osx-no-deployment-target-on-cross-compile'
e8bafb6f OS X: Do not try to set deployment target when cross-compiling
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Darwin-Initialize.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin-Initialize.cmake b/Modules/Platform/Darwin-Initialize.cmake
index 427909d..39374e1 100644
--- a/Modules/Platform/Darwin-Initialize.cmake
+++ b/Modules/Platform/Darwin-Initialize.cmake
@@ -90,7 +90,7 @@ elseif("${CMAKE_GENERATOR}" MATCHES Xcode
endif()
endforeach()
- if(NOT CMAKE_OSX_DEPLOYMENT_TARGET AND _CURRENT_OSX_VERSION VERSION_LESS _CMAKE_OSX_DEPLOYMENT_TARGET)
+ if(NOT CMAKE_CROSSCOMPILING AND NOT CMAKE_OSX_DEPLOYMENT_TARGET AND _CURRENT_OSX_VERSION VERSION_LESS _CMAKE_OSX_DEPLOYMENT_TARGET)
set(CMAKE_OSX_DEPLOYMENT_TARGET ${_CURRENT_OSX_VERSION} CACHE STRING
"Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value." FORCE)
endif()