mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
Specify ninja exe
This commit is contained in:
parent
c8f164fd91
commit
800f8b0e1d
@ -115,6 +115,7 @@ function(vcpkg_configure_cmake)
|
||||
vcpkg_find_acquire_program(NINJA)
|
||||
get_filename_component(NINJA_PATH ${NINJA} DIRECTORY)
|
||||
set(ENV{PATH} "$ENV{PATH};${NINJA_PATH}")
|
||||
list(APPEND _csc_OPTIONS "-DCMAKE_MAKE_PROGRAM=${NINJA}")
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg)
|
||||
|
@ -105,14 +105,18 @@ function(vcpkg_find_acquire_program VAR)
|
||||
set(HASH 830cd94ed6518fbe4604a0f5a3322671b4674b87d25a71349c745500d38e85c0fac4f6995242fc5521eb048e3966bb5ec2a96a06b041343ed8da9bba78124f34)
|
||||
elseif(VAR MATCHES "7Z")
|
||||
set(PROGNAME 7z)
|
||||
set(PATHS "${PROGRAM_FILES_PLATFORM_BITNESS}/7-Zip" "${PROGRAM_FILES_32_BIT}/7-Zip" ${DOWNLOADS}/tools/7z/Files/7-Zip)
|
||||
set(PATHS "${PROGRAM_FILES_PLATFORM_BITNESS}/7-Zip" "${PROGRAM_FILES_32_BIT}/7-Zip" "${DOWNLOADS}/tools/7z/Files/7-Zip")
|
||||
set(URL "http://7-zip.org/a/7z1604.msi")
|
||||
set(ARCHIVE "7z1604.msi")
|
||||
set(HASH 556f95f7566fe23704d136239e4cf5e2a26f939ab43b44145c91b70d031a088d553e5c21301f1242a2295dcde3143b356211f0108c68e65eef8572407618326d)
|
||||
elseif(VAR MATCHES "NINJA")
|
||||
set(PROGNAME ninja)
|
||||
set(SUBDIR "ninja-1.8.2")
|
||||
set(PATHS ${DOWNLOADS}/tools/ninja/${SUBDIR})
|
||||
if(CMAKE_HOST_WIN32)
|
||||
set(PATHS "${DOWNLOADS}/tools/ninja/${SUBDIR}")
|
||||
else()
|
||||
set(PATHS "${DOWNLOADS}/tools/${SUBDIR}")
|
||||
endif()
|
||||
set(BREW_PACKAGE_NAME "ninja")
|
||||
set(APT_PACKAGE_NAME "ninja-build")
|
||||
set(URL "https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip")
|
||||
|
Loading…
x
Reference in New Issue
Block a user