diff --git a/CMakeLists.txt b/CMakeLists.txt index ad5fe8ddb..01cbb23ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")