Skip to content

Commit

Permalink
CMake: Replace CMAKE_APPLE_SILICON_PROCESSOR
Browse files Browse the repository at this point in the history
Use CMAKE_HOST_SYSTEM_PROCESSOR instead, which can be set by
CMAKE_APPLE_SILICON_PROCESSOR anyways.

Signed-off-by: Avery King <avery98@pm.me>
  • Loading branch information
generic-pers0n committed Aug 27, 2024
1 parent 9048c29 commit 5dfa753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if(VCPKG)
else()
if(NOT DEFINED ENV{VCPKG_DEFAULT_TRIPLET} AND NOT DEFINED VCPKG_TARGET_TRIPLET)
if(APPLE)
if(CMAKE_APPLE_SILICON_PROCESSOR MATCHES "arm64") # Apple Silicon
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64") # Apple Silicon
set(VCPKG_TARGET_TRIPLET "arm64-osx-dynamic")
else() # Intel
set(VCPKG_TARGET_TRIPLET "x64-osx-dynamic")
Expand Down

0 comments on commit 5dfa753

Please sign in to comment.