diff options
author | Brad King <brad.king@kitware.com> | 2021-04-06 16:42:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-06 16:42:41 (GMT) |
commit | 80da23f2a2cb5b24d0f785384640198366173a25 (patch) | |
tree | e162e13993a13f41bdc60d13c8bbaaab8211a6de /Tests/RunCMake/RunCTest.cmake | |
parent | 4c5c0c5f5d03ff7a9aedc6feeeca110344699c20 (diff) | |
download | CMake-80da23f2a2cb5b24d0f785384640198366173a25.zip CMake-80da23f2a2cb5b24d0f785384640198366173a25.tar.gz CMake-80da23f2a2cb5b24d0f785384640198366173a25.tar.bz2 |
Tests: Add RunCTest helper option to control CTest verbose flag
Diffstat (limited to 'Tests/RunCMake/RunCTest.cmake')
-rw-r--r-- | Tests/RunCMake/RunCTest.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/RunCMake/RunCTest.cmake b/Tests/RunCMake/RunCTest.cmake index 98fdf20..59db395 100644 --- a/Tests/RunCMake/RunCTest.cmake +++ b/Tests/RunCMake/RunCTest.cmake @@ -11,10 +11,13 @@ function(run_ctest CASE_NAME) endif() configure_file(${RunCMake_SOURCE_DIR}/CMakeLists.txt.in ${RunCMake_BINARY_DIR}/${CASE_NAME}/CMakeLists.txt @ONLY) + if(NOT DEFINED RunCTest_VERBOSE_FLAG) + set(RunCTest_VERBOSE_FLAG "-V") + endif() run_cmake_command(${CASE_NAME} ${CMAKE_CTEST_COMMAND} -C Debug -S ${RunCMake_BINARY_DIR}/${CASE_NAME}/test.cmake - -V + ${RunCTest_VERBOSE_FLAG} --output-log ${RunCMake_BINARY_DIR}/${CASE_NAME}-build/testOutput.log --no-compress-output ${ARGN} |