mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 10:05:19 +08:00
52a9d9a9e4
* [vcpkg] Enable binary caching by default. Support `x-` migration. Fix passing multiple copies of single parameter arguments. * [vcpkg] Handle x- prefixes for general arguments * [vcpkg] Fix #12285 and improve documentation of default binary cache path * [vcpkg] Revert x- prefix homogenization for per-command arguments * [vcpkg] Only use accelerated compiler detection for Windows Desktop + Ninja. Improve breadcrumbs for users encountering issues. * [vcpkg] Fix compiler tracking not pre-downloading Ninja. Fix compiler tracking not looking in -err.log. * [vcpkg] Update toolsrc/src/vcpkg/binarycaching.cpp Co-authored-by: Billy O'Neal <bion@microsoft.com> * [vcpkg] Format Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Billy O'Neal <bion@microsoft.com>
29 lines
787 B
CMake
29 lines
787 B
CMake
set(LOGS
|
|
${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-out.log
|
|
${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-rel-out.log
|
|
${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-dbg-out.log
|
|
${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-rel-err.log
|
|
${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-dbg-err.log
|
|
)
|
|
|
|
foreach(LOG IN LISTS LOGS)
|
|
file(REMOVE ${LOG})
|
|
if(EXISTS ${LOG})
|
|
message(FATAL_ERROR "Could not remove ${LOG}")
|
|
endif()
|
|
endforeach()
|
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}"
|
|
PREFER_NINJA
|
|
)
|
|
|
|
foreach(LOG IN LISTS LOGS)
|
|
if(EXISTS ${LOG})
|
|
file(READ "${LOG}" _contents)
|
|
message("${_contents}")
|
|
endif()
|
|
endforeach()
|