summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
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 /Source/cmFindPackageCommand.h
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 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index cf27965..cf7b93c 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -111,6 +111,7 @@ private:
unsigned int VersionMajor;
unsigned int VersionMinor;
unsigned int VersionPatch;
+ unsigned int VersionTweak;
unsigned int VersionCount;
bool VersionExact;
cmStdString FileFound;
@@ -118,6 +119,7 @@ private:
unsigned int VersionFoundMajor;
unsigned int VersionFoundMinor;
unsigned int VersionFoundPatch;
+ unsigned int VersionFoundTweak;
unsigned int VersionFoundCount;
bool Quiet;
bool Required;