mirror of https://github.com/microsoft/vcpkg.git
added x64 as a prefix to search for cl.exe in the toolchain file, this makes things work with VS '15' if you manually specify the triplet
This commit is contained in:
parent
42df44ca7b
commit
d56ab64fde
|
|
@ -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…
Reference in New Issue