diff options
author | Brad King <brad.king@kitware.com> | 2020-10-22 14:12:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-22 14:20:43 (GMT) |
commit | 3f3762856fbe56a244ad45995e37b3318e80b119 (patch) | |
tree | 1b54a8f5dd00dc015889105de2996e8c03bcb9a9 /Tests | |
parent | 94c6295db1c7ae759b466d4fb06f25b889ac888b (diff) | |
download | CMake-3f3762856fbe56a244ad45995e37b3318e80b119.zip CMake-3f3762856fbe56a244ad45995e37b3318e80b119.tar.gz CMake-3f3762856fbe56a244ad45995e37b3318e80b119.tar.bz2 |
Tests: Add case verifying CTest module SITE variable
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CTest/RunCMakeTest.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/CTest/Site.cmake | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTest/RunCMakeTest.cmake b/Tests/RunCMake/CTest/RunCMakeTest.cmake index ffc8f78..b81f319 100644 --- a/Tests/RunCMake/CTest/RunCMakeTest.cmake +++ b/Tests/RunCMake/CTest/RunCMakeTest.cmake @@ -5,6 +5,7 @@ run_cmake(BeforeProject) unset(RunCMake_TEST_OPTIONS) run_cmake(NotOn) +run_cmake(Site) function(run_CMakeCTestArguments) run_cmake_with_options(CMakeCTestArguments "-DCMAKE_CTEST_ARGUMENTS=--quiet\\;--output-log\\;output-log.txt") diff --git a/Tests/RunCMake/CTest/Site.cmake b/Tests/RunCMake/CTest/Site.cmake new file mode 100644 index 0000000..2c96f23 --- /dev/null +++ b/Tests/RunCMake/CTest/Site.cmake @@ -0,0 +1,5 @@ +include(CTest) +get_property(site CACHE SITE PROPERTY VALUE) +if(NOT "${site}" STREQUAL "${SITE}") + message(FATAL_ERROR "SITE is not a cache entry") +endif() |