[vcpkg] Fix cmake architecture detection on windows with ninja generator (#11466)

This commit is contained in:
Christian Fersch 2020-05-21 20:39:03 +02:00 committed by GitHub
parent 30cae466ea
commit cbe795f788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ else()
return()
endif()
endif()
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64")
set(_VCPKG_TARGET_TRIPLET_ARCH x64)
else()
if( _CMAKE_IN_TRY_COMPILE )