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:
@@ -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")
|
||||
|
5
Tests/RunCMake/CTest/Site.cmake
Normal file
5
Tests/RunCMake/CTest/Site.cmake
Normal 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()
|
Reference in New Issue
Block a user