summaryrefslogtreecommitdiff
path: root/Modules/CTestScriptMode.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-07-12 04:51:51 -0400
committerAlexander Neundorf <neundorf@kde.org>2009-07-12 04:51:51 -0400
commit7048373296482ee38dc7336b3d96df4dc98bcb1b (patch)
tree843e0b1704e2b1979684c1794fdb316a20dade27 /Modules/CTestScriptMode.cmake
parent2a750cacd62e6c84cb2120a9833e0cafd1b8e338 (diff)
downloadcmake-7048373296482ee38dc7336b3d96df4dc98bcb1b.tar.gz
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 0000000000..146bdf1539
--- /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)
+