summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_package/VersionRangeCfg
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2021-05-27 18:14:49 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2021-05-27 19:18:37 (GMT)
commite609afeb5f4385755a6d0f2fdb45fcdfb0a01b7a (patch)
tree375cfa4058b154ec4f5673310e460aa728e1175f /Tests/RunCMake/find_package/VersionRangeCfg
parentc5657a2fe42a0de7a5724507888f9f6f1afff8ea (diff)
downloadCMake-e609afeb5f4385755a6d0f2fdb45fcdfb0a01b7a.zip
CMake-e609afeb5f4385755a6d0f2fdb45fcdfb0a01b7a.tar.gz
CMake-e609afeb5f4385755a6d0f2fdb45fcdfb0a01b7a.tar.bz2
WriteBasicConfigVersion supports version strings such as 21.07.04
Fixes #22207
Diffstat (limited to 'Tests/RunCMake/find_package/VersionRangeCfg')
-rw-r--r--Tests/RunCMake/find_package/VersionRangeCfg/VersionRangeCfgConfigVersion.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/RunCMake/find_package/VersionRangeCfg/VersionRangeCfgConfigVersion.cmake b/Tests/RunCMake/find_package/VersionRangeCfg/VersionRangeCfgConfigVersion.cmake
index e9f6076..1d0adfe 100644
--- a/Tests/RunCMake/find_package/VersionRangeCfg/VersionRangeCfgConfigVersion.cmake
+++ b/Tests/RunCMake/find_package/VersionRangeCfg/VersionRangeCfgConfigVersion.cmake
@@ -1,6 +1,7 @@
if (NOT PACKAGE_FIND_VERSION_COMPLETE STREQUAL "1.2.3.4...5.6.7.8"
- AND NOT PACKAGE_FIND_VERSION_COMPLETE STREQUAL "1.2.3.4...<5.6.7.8")
+ AND NOT PACKAGE_FIND_VERSION_COMPLETE STREQUAL "1.2.3.4...<5.6.7.8"
+ AND NOT PACKAGE_FIND_VERSION_COMPLETE STREQUAL "1.02.03.04...<5.06.07.08")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_COMPLETE: ${PACKAGE_FIND_VERSION_COMPLETE}")
endif()
@@ -21,7 +22,8 @@ if (NOT PACKAGE_FIND_VERSION_TWEAK VERSION_EQUAL "4")
endif()
if (NOT PACKAGE_FIND_VERSION_RANGE STREQUAL "1.2.3.4...5.6.7.8"
- AND NOT PACKAGE_FIND_VERSION_RANGE STREQUAL "1.2.3.4...<5.6.7.8")
+ AND NOT PACKAGE_FIND_VERSION_RANGE STREQUAL "1.2.3.4...<5.6.7.8"
+ AND NOT PACKAGE_FIND_VERSION_RANGE STREQUAL "1.02.03.04...<5.06.07.08")
message (SEND_ERROR "Wrong value for PACKAGE_FIND_VERSION_RANGE: ${PACKAGE_FIND_VERSION_RANGE}")
endif()