Debian Codegraph @

cmake/tribits/ctest_driver/tribits_ctest_update_commands_wrapper.cmake

raw
1 #
2 # cmake -P script that calls tribits_ctest_update_commands.cmake and sends
3 # STDOUT to a file.
4 #
5 # This script is required if you want to capture the output from these
6 # commands to a file since this is called from ctest_update() which discards
7 # the output (and does not send it to CDash).
8 #
9
10 cmake_minimum_required(VERSION 3.23.0 FATAL_ERROR)
11
12 message("\ncmake -P tribits_ctest_update_commands_wrapper.cmake:")
13 message("-- OUTPUT_FILE=${OUTPUT_FILE}\n")
14
15 execute_process(
16 COMMAND "${CMAKE_COMMAND}"
17 -DGIT_EXE=${GIT_EXE}
18 -DREMOTE_NAME=${REMOTE_NAME}
19 -DBRANCH=${BRANCH}
20 -DUNIT_TEST_MODE=${UNIT_TEST_MODE}
21 -P ${CMAKE_CURRENT_LIST_DIR}/tribits_ctest_update_commands.cmake
22 OUTPUT_FILE "${OUTPUT_FILE}"
23 ERROR_FILE "${OUTPUT_FILE}"
24 RESULT_VARIABLE RTN_CODE
25 )
26 message("\ntribits_ctest_update_commands_wrapper.cmake return: ${RTN_CODE}\n")
27
28 if (NOT "${RTN_CODE}" STREQUAL "0")
29 message(FATAL_ERROR "Git Update FAILED!")
30 endif()