summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorYves Frederix <yves.frederix@dentsplysirona.com>2017-09-05 19:15:35 (GMT)
committerYves Frederix <yves.frederix@dentsplysirona.com>2017-09-05 19:20:00 (GMT)
commit0019bfebc949a052d6ef2ac3d0764af307419baa (patch)
tree6e1251530079ff490b9c9f8f8aeeae5077b013db /Tests/RunCMake/FPHSA/RunCMakeTest.cmake
parent8184433428859b64a7e13568a242b40445dce111 (diff)
downloadCMake-0019bfebc949a052d6ef2ac3d0764af307419baa.zip
CMake-0019bfebc949a052d6ef2ac3d0764af307419baa.tar.gz
CMake-0019bfebc949a052d6ef2ac3d0764af307419baa.tar.bz2
FPHSA: Add (failing) unit test in case a cache variable VERSION is present
Diffstat (limited to 'Tests/RunCMake/FPHSA/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/FPHSA/RunCMakeTest.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
index e2fc733..1b71a31 100644
--- a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
+++ b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake
@@ -9,7 +9,12 @@ run_cmake(BadFoundVar)
set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DPseudo_VERSION=0")
run_cmake(any_version_find_0)
-# Find a package with a more customary version number.
+# Find a package with more customary version number, without requestion a specific version and in
+# the presence of a cache variable VERSION.
+set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DPseudoNoVersionVar_VERSION=1.2.3.4.5_SHOULD_BE_IGNORED" "-DVERSION=BAD_VERSION")
+run_cmake(any_version_VERSION_cache_variable)
+
+# Find a package with a more customary version number, without requestion a specific version.
set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DPseudo_VERSION=1.2.3.4.5")
run_cmake(any_version)