mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 04:37:20 +08:00
Add elseifs to attempt to see if cmake has selected to target arm64. (#26878)
This commit is contained in:
parent
6ca56aeb45
commit
a71c7421e2
@ -260,8 +260,12 @@ else()
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH arm)
|
||||
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 15 2017")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH x86)
|
||||
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 16 2019" AND CMAKE_VS_PLATFORM_NAME_DEFAULT STREQUAL "ARM64")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH arm64)
|
||||
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 16 2019")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH x64)
|
||||
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 17 2022" AND CMAKE_VS_PLATFORM_NAME_DEFAULT STREQUAL "ARM64")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH arm64)
|
||||
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 17 2022")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH x64)
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user