summaryrefslogtreecommitdiffstats
path: root/Tests/CTestScriptMode/CTestTestScriptMode.cmake.in
blob: 5ff1bf282c00d97b4b7ec09aa2efeb29b8144cb4 (plain)
1
2
3
4
5
6
7
8
# This script will be executed with ctest -S

# Check that the system name is determined correctly:
set(CMAKE_CMAKE_SYSTEM_NAME "@CMAKE_SYSTEM_NAME@")

if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "${CMAKE_CMAKE_SYSTEM_NAME}")
   message(FATAL_ERROR "Error: CMAKE_SYSTEM_NAME is \"${CMAKE_SYSTEM_NAME}\", but should be \"@CMAKE_SYSTEM_NAME@\"")
endif()