mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 03:00:19 +08:00
[vcpkg scripts] toolchain/osx: Fix CMAKE_HOST_SYSTEM_PROCESSOR condition with lower case arm64 (#40503)
This commit is contained in:
parent
ab67d6306b
commit
fec650a9a1
@ -44,7 +44,7 @@ if(NOT _VCPKG_OSX_TOOLCHAIN)
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
|
||||
set(CMAKE_CROSSCOMPILING OFF CACHE STRING "")
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
|
||||
# arm64 macOS can run x64 binaries
|
||||
set(CMAKE_CROSSCOMPILING OFF CACHE STRING "")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user