mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
fix vs2019 arch specification
This commit is contained in:
parent
b755c30bc7
commit
caa7981dcf
@ -110,9 +110,18 @@ function(vcpkg_configure_cmake)
|
|||||||
set(GENERATOR "Visual Studio 15 2017")
|
set(GENERATOR "Visual Studio 15 2017")
|
||||||
set(ARCH "ARM64")
|
set(ARCH "ARM64")
|
||||||
|
|
||||||
elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
|
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "x86" AND VCPKG_PLATFORM_TOOLSET MATCHES "v142")
|
||||||
set(GENERATOR "Visual Studio 16 2019")
|
set(GENERATOR "Visual Studio 16 2019")
|
||||||
set(ARCH "${VCPKG_TARGET_ARCHITECTURE}")
|
set(ARCH "Win32")
|
||||||
|
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "x64" AND VCPKG_PLATFORM_TOOLSET MATCHES "v142")
|
||||||
|
set(GENERATOR "Visual Studio 16 2019")
|
||||||
|
set(ARCH "x64")
|
||||||
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" AND VCPKG_PLATFORM_TOOLSET MATCHES "v142")
|
||||||
|
set(GENERATOR "Visual Studio 16 2019")
|
||||||
|
set(ARCH "ARM")
|
||||||
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" AND VCPKG_PLATFORM_TOOLSET MATCHES "v142")
|
||||||
|
set(GENERATOR "Visual Studio 16 2019")
|
||||||
|
set(ARCH "ARM64")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
if(NOT VCPKG_CMAKE_SYSTEM_NAME)
|
if(NOT VCPKG_CMAKE_SYSTEM_NAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user