diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-09-29 11:02:23 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-09-29 11:06:09 (GMT) |
commit | 212b0afb66d293bb88261710a3365f95b8104898 (patch) | |
tree | f41da17c590f760f171b068701970bda08ebc030 /Tests/RunCMake/FPHSA | |
parent | 1382002ae2e78ea8bcda7f97be9130246ea40b11 (diff) | |
download | CMake-212b0afb66d293bb88261710a3365f95b8104898.zip CMake-212b0afb66d293bb88261710a3365f95b8104898.tar.gz CMake-212b0afb66d293bb88261710a3365f95b8104898.tar.bz2 |
find_package: raise error on empty version range
Diffstat (limited to 'Tests/RunCMake/FPHSA')
-rw-r--r-- | Tests/RunCMake/FPHSA/RunCMakeTest.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/FPHSA/range_empty-1-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/FPHSA/range_empty-1-stderr.txt | 6 | ||||
-rw-r--r-- | Tests/RunCMake/FPHSA/range_empty-1.cmake | 1 | ||||
-rw-r--r-- | Tests/RunCMake/FPHSA/range_empty-2-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/FPHSA/range_empty-2-stderr.txt | 6 | ||||
-rw-r--r-- | Tests/RunCMake/FPHSA/range_empty-2.cmake | 1 |
7 files changed, 0 insertions, 18 deletions
diff --git a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake index e4b8700..28b8570 100644 --- a/Tests/RunCMake/FPHSA/RunCMakeTest.cmake +++ b/Tests/RunCMake/FPHSA/RunCMakeTest.cmake @@ -61,8 +61,6 @@ set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DPse run_cmake(range_ignored) set(RunCMake_TEST_OPTIONS "-DCMAKE_MODULE_PATH=${CMAKE_CURRENT_LIST_DIR}" "-DPseudoRange_VERSION=2.0") run_cmake(range_no-range) -run_cmake(range_empty-1) -run_cmake(range_empty-2) run_cmake(range_1-3) run_cmake(range_1-2-include) run_cmake(range_1-2-exclude) diff --git a/Tests/RunCMake/FPHSA/range_empty-1-result.txt b/Tests/RunCMake/FPHSA/range_empty-1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/FPHSA/range_empty-1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/FPHSA/range_empty-1-stderr.txt b/Tests/RunCMake/FPHSA/range_empty-1-stderr.txt deleted file mode 100644 index e1c741a..0000000 --- a/Tests/RunCMake/FPHSA/range_empty-1-stderr.txt +++ /dev/null @@ -1,6 +0,0 @@ -CMake Error at .+FindPackageHandleStandardArgs.cmake:[0-9]+ \(message\): - Could NOT find PseudoRange: Found unsuitable version "2\.0", required range - is empty \("3\.0\.\.\.2\.0"\) \(found TRUE\) -Call Stack \(most recent call first\): - .+FindPackageHandleStandardArgs.cmake:[0-9]+ \(_FPHSA_FAILURE_MESSAGE\) - FindPseudoRange.cmake:[0-9]+ \(find_package_handle_standard_args\) diff --git a/Tests/RunCMake/FPHSA/range_empty-1.cmake b/Tests/RunCMake/FPHSA/range_empty-1.cmake deleted file mode 100644 index c510d7d..0000000 --- a/Tests/RunCMake/FPHSA/range_empty-1.cmake +++ /dev/null @@ -1 +0,0 @@ -find_package(PseudoRange 3.0...2.0 REQUIRED) diff --git a/Tests/RunCMake/FPHSA/range_empty-2-result.txt b/Tests/RunCMake/FPHSA/range_empty-2-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/FPHSA/range_empty-2-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/FPHSA/range_empty-2-stderr.txt b/Tests/RunCMake/FPHSA/range_empty-2-stderr.txt deleted file mode 100644 index ee0e79a..0000000 --- a/Tests/RunCMake/FPHSA/range_empty-2-stderr.txt +++ /dev/null @@ -1,6 +0,0 @@ -CMake Error at .+FindPackageHandleStandardArgs.cmake:[0-9]+ \(message\): - Could NOT find PseudoRange: Found unsuitable version "2\.0", required range - is empty \("2\.0\.\.\.<2.0"\) \(found TRUE\) -Call Stack \(most recent call first\): - .+FindPackageHandleStandardArgs.cmake:[0-9]+ \(_FPHSA_FAILURE_MESSAGE\) - FindPseudoRange.cmake:[0-9]+ \(find_package_handle_standard_args\) diff --git a/Tests/RunCMake/FPHSA/range_empty-2.cmake b/Tests/RunCMake/FPHSA/range_empty-2.cmake deleted file mode 100644 index 3ce90e8..0000000 --- a/Tests/RunCMake/FPHSA/range_empty-2.cmake +++ /dev/null @@ -1 +0,0 @@ -find_package(PseudoRange 2.0...<2.0 REQUIRED) |