mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:59:02 +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)
|
set(Z_VCPKG_TARGET_TRIPLET_ARCH arm)
|
||||||
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 15 2017")
|
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 15 2017")
|
||||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH x86)
|
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")
|
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 16 2019")
|
||||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH x64)
|
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")
|
elseif(CMAKE_GENERATOR STREQUAL "Visual Studio 17 2022")
|
||||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH x64)
|
set(Z_VCPKG_TARGET_TRIPLET_ARCH x64)
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user