Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toolchains: Fix CMAKE_HOST_SYSTEM_PROCESSOR with lower case arm64
Browse files Browse the repository at this point in the history
WangWeiLin-MV authored Aug 16, 2024

Verified

This commit was signed with the committer’s verified signature.
lann Lann
1 parent 73964f8 commit 5c33fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/toolchains/osx.cmake
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 5c33fff

Please sign in to comment.