summaryrefslogtreecommitdiffstats
path: root/Modules/CTestScriptMode.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-07-12 08:51:51 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-07-12 08:51:51 (GMT)
commit7048373296482ee38dc7336b3d96df4dc98bcb1b (patch)
tree843e0b1704e2b1979684c1794fdb316a20dade27 /Modules/CTestScriptMode.cmake
parent2a750cacd62e6c84cb2120a9833e0cafd1b8e338 (diff)
downloadCMake-7048373296482ee38dc7336b3d96df4dc98bcb1b.zip
CMake-7048373296482ee38dc7336b3d96df4dc98bcb1b.tar.gz
CMake-7048373296482ee38dc7336b3d96df4dc98bcb1b.tar.bz2
STYLE: don't load CMakeDetermineSystem and CMakeSystemSpecific directly from
cmCTestScriptHandler, but have it load the new script CTestScriptMode.cmake -> that makes it more flexible, also add a simple test that the system name has been determined correctly Alex
Diffstat (limited to 'Modules/CTestScriptMode.cmake')
-rw-r--r--Modules/CTestScriptMode.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/CTestScriptMode.cmake b/Modules/CTestScriptMode.cmake
new file mode 100644
index 0000000..146bdf1
--- /dev/null
+++ b/Modules/CTestScriptMode.cmake
@@ -0,0 +1,10 @@
+# This file is read by ctest in script mode (-S)
+
+# Determine the current system, so this information can be used
+# in ctest scripts
+include(CMakeDetermineSystem)
+
+# Also load the system specific file, which sets up e.g. the search paths.
+# This makes the FIND_XXX() calls work much better
+include(CMakeSystemSpecificInformation)
+