[vcpkg-cmake] Fix regression in Ninja generator support for x86.

This commit is contained in:
Robert Schumacher 2016-10-31 10:11:25 -07:00
parent 268f5f306f
commit bf16c7f4cc

View File

@ -18,7 +18,7 @@ if(NOT VCPKG_TOOLCHAIN)
set(_VCPKG_TARGET_TRIPLET_ARCH x64)
elseif(_VCPKG_CL MATCHES "arm/cl.exe$")
set(_VCPKG_TARGET_TRIPLET_ARCH arm)
elseif(_VCPKG_CL MATCHES "x86/cl.exe$")
elseif(_VCPKG_CL MATCHES "bin/cl.exe$" OR _VCPKG_CL MATCHES "x86/cl.exe$")
set(_VCPKG_TARGET_TRIPLET_ARCH x86)
else()
message(FATAL_ERROR "Unable to determine target architecture.")