2020-06-23 05:14:36 +08:00
|
|
|
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
|
2020-07-14 03:03:53 +08:00
|
|
|
${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-rel-err.log
|
|
|
|
${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-dbg-err.log
|
2020-06-23 05:14:36 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
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()
|