1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Tests: Add case verifying CTest module SITE variable

This commit is contained in:
Brad King
2020-10-22 10:12:51 -04:00
parent 94c6295db1
commit 3f3762856f
2 changed files with 6 additions and 0 deletions

View File

@@ -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")

View File

@@ -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()