mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
Add support for CMake generation with VS 2019 (#6090)
This commit is contained in:
parent
48f22127e8
commit
d91644d3f5
@ -37,6 +37,18 @@ else()
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH arm)
|
||||
elseif(CMAKE_GENERATOR MATCHES "^Visual Studio 15 2017$")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH x86)
|
||||
elseif(CMAKE_GENERATOR MATCHES "^Visual Studio 16 2019$")
|
||||
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^[Xx]86$")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH x86)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^[Aa][Mm][Dd]64$")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH x64)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^[Aa][Rr][Mm]$")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH arm)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^[Aa][Rr][Mm]64$")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH arm64)
|
||||
else()
|
||||
|
||||
endif()
|
||||
else()
|
||||
find_program(_VCPKG_CL cl)
|
||||
if(_VCPKG_CL MATCHES "amd64/cl.exe$" OR _VCPKG_CL MATCHES "x64/cl.exe$")
|
||||
|
Loading…
x
Reference in New Issue
Block a user