diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2016-10-14 18:01:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-17 15:15:36 (GMT) |
commit | 19beee46cc6e9b7a05694b29420ad49487648501 (patch) | |
tree | b1a70aac9e26172f3a4e22283a330d649f66e812 /Tests/RunCMake/ctest_build/RunCMakeTest.cmake | |
parent | b2cf1cba07633a242d5d13f694609a505c6a6235 (diff) | |
download | CMake-19beee46cc6e9b7a05694b29420ad49487648501.zip CMake-19beee46cc6e9b7a05694b29420ad49487648501.tar.gz CMake-19beee46cc6e9b7a05694b29420ad49487648501.tar.bz2 |
ctest_configure: Propagate CTEST_USE_LAUNCHERS from caller to project
If `CTEST_USE_LAUNCHERS` is `TRUE` in a CTest script then the
`ctest_configure` command will add `-DCTEST_USE_LAUNCHERS:BOOL=TRUE` to
the cmake command used to configure the project. This allows a project
to only set `CTEST_USE_LAUNCHERS` in a ctest script and have launchers
work.
Diffstat (limited to 'Tests/RunCMake/ctest_build/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/ctest_build/RunCMakeTest.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/ctest_build/RunCMakeTest.cmake b/Tests/RunCMake/ctest_build/RunCMakeTest.cmake index 324f25c..1092d2a 100644 --- a/Tests/RunCMake/ctest_build/RunCMakeTest.cmake +++ b/Tests/RunCMake/ctest_build/RunCMakeTest.cmake @@ -13,6 +13,11 @@ function(run_BuildFailure) set(CASE_CMAKELISTS_SUFFIX_CODE [[ add_custom_target(BuildFailure ALL COMMAND command-does-not-exist) ]]) + set(CASE_CMAKELISTS_PREFIX_CODE [[ +if(NOT CTEST_USE_LAUNCHERS) + message(FATAL_ERROR "CTEST_USE_LAUNCHERS not set") +endif() +]]) set(CASE_TEST_PREFIX_CODE [[ cmake_policy(SET CMP0061 NEW) ]]) |