mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
update vcpkg_configure_cmake
This commit is contained in:
parent
0c7bf66527
commit
119e9b5729
@ -72,14 +72,11 @@ function(vcpkg_configure_cmake)
|
||||
endif()
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
set(_PATHSEP ";")
|
||||
if(DEFINED ENV{PROCESSOR_ARCHITEW6432})
|
||||
set(_csc_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITEW6432})
|
||||
else()
|
||||
set(_csc_HOST_ARCHITECTURE $ENV{PROCESSOR_ARCHITECTURE})
|
||||
endif()
|
||||
else()
|
||||
set(_PATHSEP ":")
|
||||
endif()
|
||||
|
||||
set(NINJA_CAN_BE_USED ON) # Ninja as generator
|
||||
@ -154,7 +151,7 @@ function(vcpkg_configure_cmake)
|
||||
if(GENERATOR STREQUAL "Ninja")
|
||||
vcpkg_find_acquire_program(NINJA)
|
||||
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
||||
set(ENV{PATH} "$ENV{PATH}${_PATHSEP}${NINJA_PATH}")
|
||||
vcpkg_add_to_path("${NINJA_PATH}")
|
||||
list(APPEND _csc_OPTIONS "-DCMAKE_MAKE_PROGRAM=${NINJA}")
|
||||
endif()
|
||||
|
||||
@ -265,7 +262,7 @@ function(vcpkg_configure_cmake)
|
||||
|
||||
vcpkg_find_acquire_program(NINJA)
|
||||
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
||||
set(ENV{PATH} "$ENV{PATH}${_PATHSEP}${NINJA_PATH}")
|
||||
vcpkg_add_to_path("${NINJA_PATH}")
|
||||
|
||||
#parallelize the configure step
|
||||
set(_contents
|
||||
|
Loading…
x
Reference in New Issue
Block a user