summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageTest/FindVersionTestC.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-09-10 14:11:48 (GMT)
committerBrad King <brad.king@kitware.com>2008-09-10 14:11:48 (GMT)
commit994262e5cc05abfb96da9af38f8d84988405ea5b (patch)
tree3fe840a4aadc7988608eb9e7491e6908f76b3649 /Tests/FindPackageTest/FindVersionTestC.cmake
parent4eaac32db62f96796fc6bfe09d5cc83ff1b15fe6 (diff)
downloadCMake-994262e5cc05abfb96da9af38f8d84988405ea5b.zip
CMake-994262e5cc05abfb96da9af38f8d84988405ea5b.tar.gz
CMake-994262e5cc05abfb96da9af38f8d84988405ea5b.tar.bz2
ENH: Improve find_package version numbering
Make the number of version components specified explicitly available. Set variables for unspecified version components to "0" instead of leaving them unset. This simplifies version number handling for find- and config-modules. Also support a fourth "tweak" version component since some packages use them.
Diffstat (limited to 'Tests/FindPackageTest/FindVersionTestC.cmake')
-rw-r--r--Tests/FindPackageTest/FindVersionTestC.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindPackageTest/FindVersionTestC.cmake b/Tests/FindPackageTest/FindVersionTestC.cmake
index 26ce050..1344cbc 100644
--- a/Tests/FindPackageTest/FindVersionTestC.cmake
+++ b/Tests/FindPackageTest/FindVersionTestC.cmake
@@ -10,3 +10,9 @@ ENDIF(NOT "${VersionTestC_FIND_VERSION_MINOR}" STREQUAL "2")
IF(NOT "${VersionTestC_FIND_VERSION_PATCH}" STREQUAL "3")
MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_PATCH=${VersionTestC_FIND_VERSION_PATCH} is not 3")
ENDIF(NOT "${VersionTestC_FIND_VERSION_PATCH}" STREQUAL "3")
+IF(NOT "${VersionTestC_FIND_VERSION_TWEAK}" STREQUAL "0")
+ MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_TWEAK=${VersionTestC_FIND_VERSION_TWEAK} is not 0")
+ENDIF(NOT "${VersionTestC_FIND_VERSION_TWEAK}" STREQUAL "0")
+IF(NOT "${VersionTestC_FIND_VERSION_COUNT}" STREQUAL "3")
+ MESSAGE(SEND_ERROR "VersionTestC_FIND_VERSION_COUNT=${VersionTestC_FIND_VERSION_COUNT} is not 3")
+ENDIF(NOT "${VersionTestC_FIND_VERSION_COUNT}" STREQUAL "3")