summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/set
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-06 21:53:52 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-06 21:58:35 (GMT)
commitc869984ea013f99c3104abaf17d553b08c4b17c2 (patch)
treee8fa541a6f888b432fbc1212bc9b05b183c583ee /Tests/RunCMake/set
parent5376151aa1d724b6d7ddef8d2e521d97cbfa74ae (diff)
downloadCMake-c869984ea013f99c3104abaf17d553b08c4b17c2.zip
CMake-c869984ea013f99c3104abaf17d553b08c4b17c2.tar.gz
CMake-c869984ea013f99c3104abaf17d553b08c4b17c2.tar.bz2
RunCMake: Allow specifying the source dir and file to test.
This will allow decoupling the name of the test from the name and location of the source file under test, which means one source file can be used for multiple tests. Rename the PARENT_SCOPE test in RunCMake.set to not use a keyword of the if() command as a file name. As the filename is now used with an if condition, this causes a conflict.
Diffstat (limited to 'Tests/RunCMake/set')
-rw-r--r--Tests/RunCMake/set/ParentScope-result.txt (renamed from Tests/RunCMake/set/PARENT_SCOPE-result.txt)0
-rw-r--r--Tests/RunCMake/set/ParentScope.cmake (renamed from Tests/RunCMake/set/PARENT_SCOPE.cmake)0
-rw-r--r--Tests/RunCMake/set/RunCMakeTest.cmake2
3 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/set/PARENT_SCOPE-result.txt b/Tests/RunCMake/set/ParentScope-result.txt
index 573541a..573541a 100644
--- a/Tests/RunCMake/set/PARENT_SCOPE-result.txt
+++ b/Tests/RunCMake/set/ParentScope-result.txt
diff --git a/Tests/RunCMake/set/PARENT_SCOPE.cmake b/Tests/RunCMake/set/ParentScope.cmake
index 9bd6bca..9bd6bca 100644
--- a/Tests/RunCMake/set/PARENT_SCOPE.cmake
+++ b/Tests/RunCMake/set/ParentScope.cmake
diff --git a/Tests/RunCMake/set/RunCMakeTest.cmake b/Tests/RunCMake/set/RunCMakeTest.cmake
index 5d036e3..1b51ea2 100644
--- a/Tests/RunCMake/set/RunCMakeTest.cmake
+++ b/Tests/RunCMake/set/RunCMakeTest.cmake
@@ -1,3 +1,3 @@
include(RunCMake)
-run_cmake(PARENT_SCOPE)
+run_cmake(ParentScope)