mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[vcpkg] Ninja is only 64-bit; do not use on x86
This commit is contained in:
parent
75cdbd398b
commit
169521070a
@ -5,9 +5,15 @@ function(vcpkg_configure_cmake)
|
||||
message(FATAL_ERROR "Vcpkg has been updated with VS2017 support, however you need to rebuild vcpkg.exe by re-running bootstrap-vcpkg.bat\n")
|
||||
endif()
|
||||
|
||||
if(ENV{PROCESSOR_ARCHITEW6432})
|
||||
set(_csc_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITEW6432})
|
||||
else()
|
||||
set(_csc_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITECTURE})
|
||||
endif()
|
||||
|
||||
if(_csc_GENERATOR)
|
||||
set(GENERATOR ${_csc_GENERATOR})
|
||||
elseif(_csc_PREFER_NINJA AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
elseif(_csc_PREFER_NINJA AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT _csc_HOST_ARCHITECTURE STREQUAL "x86")
|
||||
set(GENERATOR "Ninja")
|
||||
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND TRIPLET_SYSTEM_ARCH MATCHES "x86" AND VCPKG_PLATFORM_TOOLSET MATCHES "v140")
|
||||
set(GENERATOR "Visual Studio 14 2015")
|
||||
|
@ -46,6 +46,7 @@ namespace vcpkg::System
|
||||
L"OS",
|
||||
L"PATHEXT",
|
||||
L"PROCESSOR_ARCHITECTURE",
|
||||
L"PROCESSOR_ARCHITEW6432",
|
||||
L"PROCESSOR_IDENTIFIER",
|
||||
L"PROCESSOR_LEVEL",
|
||||
L"PROCESSOR_REVISION",
|
||||
|
Loading…
x
Reference in New Issue
Block a user