diff options
author | Yves Frederix <yves.frederix@dentsplysirona.com> | 2017-09-05 18:58:36 (GMT) |
---|---|---|
committer | Yves Frederix <yves.frederix@dentsplysirona.com> | 2017-09-05 19:18:34 (GMT) |
commit | 8184433428859b64a7e13568a242b40445dce111 (patch) | |
tree | cc62331452f5fad8486c974e66c69952a72f75fe /Tests/RunCMake/FPHSA/RunCMakeTest.cmake | |
parent | d75ccb1ce0e856e59c51bb36fa194f28c793e9b2 (diff) | |
download | CMake-8184433428859b64a7e13568a242b40445dce111.zip CMake-8184433428859b64a7e13568a242b40445dce111.tar.gz CMake-8184433428859b64a7e13568a242b40445dce111.tar.bz2 |
FPHSA: add (failing) unit test for found version being equal to 0.
Diffstat (limited to 'Tests/RunCMake/FPHSA/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/FPHSA/RunCMakeTest.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake index e9b2a7a..e2fc733 100644 --- a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake +++ b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake @@ -4,6 +4,12 @@ run_cmake(BadFoundVar) # The pseudo module will "find" a package with the given version. Check if the # version selection code in FPHSA works correctly. + +# Find a package with version 0. +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. set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DPseudo_VERSION=1.2.3.4.5") run_cmake(any_version) |