cmake/Tests/RunCMake/CPack_WIX/cpack-check-common.cmake

7 lines
352 B
CMake
Raw Normal View History

2024-07-09 14:46:46 +02:00
file(GLOB wix_log_file RELATIVE "${RunCMake_TEST_BINARY_DIR}" "${RunCMake_TEST_BINARY_DIR}/_CPack_Packages/*/WIX/wix.log")
if(wix_log_file)
file(READ "${RunCMake_TEST_BINARY_DIR}/${wix_log_file}" wix_log)
string(REPLACE "\n" "\n wix-log> " wix_log " wix-log> ${wix_log}")
set(RunCMake_TEST_FAILURE_MESSAGE "${wix_log_file}:\n${wix_log}")
endif()