summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeOnly/Test.cmake.in
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-10-24 17:55:14 (GMT)
committerBrad King <brad.king@kitware.com>2012-10-31 20:22:42 (GMT)
commitd1f3bfe50ecf974c313d0e191475bc4ea18f0c9c (patch)
tree406f85dc84adb659f76425b49fdd47957b1c058e /Tests/CMakeOnly/Test.cmake.in
parentf551fa62450379b41b510054948e097582538357 (diff)
downloadCMake-d1f3bfe50ecf974c313d0e191475bc4ea18f0c9c.zip
CMake-d1f3bfe50ecf974c313d0e191475bc4ea18f0c9c.tar.gz
CMake-d1f3bfe50ecf974c313d0e191475bc4ea18f0c9c.tar.bz2
Tests: add MajorVersionSelection tests
For things where we may have 2 major versions of the same software installed in parallel (think of Qt and Python) make sure our version selection gets this right.
Diffstat (limited to 'Tests/CMakeOnly/Test.cmake.in')
-rw-r--r--Tests/CMakeOnly/Test.cmake.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CMakeOnly/Test.cmake.in b/Tests/CMakeOnly/Test.cmake.in
index 42af068..f76db1d 100644
--- a/Tests/CMakeOnly/Test.cmake.in
+++ b/Tests/CMakeOnly/Test.cmake.in
@@ -1,4 +1,8 @@
-set(source_dir "@CMAKE_CURRENT_SOURCE_DIR@/${TEST}")
+if (NOT TEST_SOURCE)
+ set(TEST_SOURCE "${TEST}")
+endif ()
+
+set(source_dir "@CMAKE_CURRENT_SOURCE_DIR@/${TEST_SOURCE}")
set(binary_dir "@CMAKE_CURRENT_BINARY_DIR@/${TEST}-build")
file(REMOVE_RECURSE "${binary_dir}")
file(MAKE_DIRECTORY "${binary_dir}")