mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-16 19:16:34 +08:00
Merge pull request #297 from barcharcraz/add_x64_prefix
added x64 as a prefix to search for cl.exe in the toolchain file
This commit is contained in:
commit
0ca3e5b160
@ -14,7 +14,7 @@ if(NOT VCPKG_TOOLCHAIN)
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH x86)
|
||||
else()
|
||||
find_program(_VCPKG_CL cl)
|
||||
if(_VCPKG_CL MATCHES "amd64/cl.exe$")
|
||||
if(_VCPKG_CL MATCHES "amd64/cl.exe$" OR _VCPKG_CL MATCHES "x64/cl.exe$")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH x64)
|
||||
elseif(_VCPKG_CL MATCHES "arm/cl.exe$")
|
||||
set(_VCPKG_TARGET_TRIPLET_ARCH arm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user