mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 03:13:03 +08:00
Add definitions for CMAKE_SYSTEM_VERSION and CMAKE_SYSTEM_PROCESSOR to osx toolchain (#4441)
This commit is contained in:
parent
7970ab0251
commit
c7f30eca90
@ -1,5 +1,11 @@
|
|||||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
|
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()
|
endif()
|
||||||
set(CMAKE_SYSTEM_NAME Darwin CACHE STRING "")
|
set(CMAKE_SYSTEM_NAME Darwin CACHE STRING "")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user