aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLRFLEW <LRFLEW@aol.com>2018-10-10 06:00:05 -0600
committerRobert Schumacher <roschuma@microsoft.com>2018-10-10 05:00:05 -0700
commitc7f30eca90ac2aea89f5a1b198878a2746c2b27c (patch)
tree5cb03b7b063204d3b0638098f0e706dd66d3d173 /scripts
parent7970ab0251c4607ef1690f397e4898dadefdb7ff (diff)
downloadvcpkg-c7f30eca90ac2aea89f5a1b198878a2746c2b27c.tar.gz
vcpkg-c7f30eca90ac2aea89f5a1b198878a2746c2b27c.zip
Add definitions for CMAKE_SYSTEM_VERSION and CMAKE_SYSTEM_PROCESSOR to osx toolchain (#4441)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/toolchains/osx.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/toolchains/osx.cmake b/scripts/toolchains/osx.cmake
index b8f261d09..9c4fdb12e 100644
--- a/scripts/toolchains/osx.cmake
+++ b/scripts/toolchains/osx.cmake
@@ -1,5 +1,11 @@
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
+
+ set(CMAKE_SYSTEM_VERSION "${CMAKE_HOST_SYSTEM_VERSION}" CACHE STRING "")
+ set(CMAKE_SYSTEM_PROCESSOR "${CMAKE_HOST_SYSTEM_PROCESSOR}" CACHE STRING "")
+else()
+ set(CMAKE_SYSTEM_VERSION "17.0.0" CACHE STRING "")
+ set(CMAKE_SYSTEM_PROCESSOR "x86_64" CACHE STRING "")
endif()
set(CMAKE_SYSTEM_NAME Darwin CACHE STRING "")