mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05: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)
|
unset(RunCMake_TEST_OPTIONS)
|
||||||
|
|
||||||
run_cmake(NotOn)
|
run_cmake(NotOn)
|
||||||
|
run_cmake(Site)
|
||||||
|
|
||||||
function(run_CMakeCTestArguments)
|
function(run_CMakeCTestArguments)
|
||||||
run_cmake_with_options(CMakeCTestArguments "-DCMAKE_CTEST_ARGUMENTS=--quiet\\;--output-log\\;output-log.txt")
|
run_cmake_with_options(CMakeCTestArguments "-DCMAKE_CTEST_ARGUMENTS=--quiet\\;--output-log\\;output-log.txt")
|
||||||
|
|||||||
@@ -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