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:
Robert Schumacher 2016-11-16 16:11:52 -08:00 committed by GitHub
commit 0ca3e5b160

View File

@ -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)