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: Restore original intention of CMAKE_CROSSCOMPILING
Browse files Browse the repository at this point in the history
WangWeiLin-MV committed Sep 13, 2024
1 parent 29b2ea2 commit 99257ff
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 99257ff

Please sign in to comment.