summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorMarc Chevier <marc.chevrier@gmail.com>2020-09-22 13:14:13 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-09-23 10:52:25 (GMT)
commitd7df81067b3d0dfc476fd3603e7b948a1637edb3 (patch)
treee565c3e5f4bcc1a3f4f25267d82da9530b2c666e /Source/cmFindPackageCommand.h
parent09095dbcd2dd43763e37142b65bdaaeb34deb45d (diff)
downloadCMake-d7df81067b3d0dfc476fd3603e7b948a1637edb3.zip
CMake-d7df81067b3d0dfc476fd3603e7b948a1637edb3.tar.gz
CMake-d7df81067b3d0dfc476fd3603e7b948a1637edb3.tar.bz2
find_package: Add support of version range
This enhancement is the first step for solving issue #21107
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 4216ad7..edf32d4 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -158,14 +158,27 @@ private:
std::map<std::string, cmPolicies::PolicyID> DeprecatedFindModules;
+ static const cm::string_view VERSION_ENDPOINT_INCLUDED;
+ static const cm::string_view VERSION_ENDPOINT_EXCLUDED;
+
std::string Name;
std::string Variable;
+ std::string VersionComplete;
+ std::string VersionRange;
+ cm::string_view VersionRangeMin;
+ cm::string_view VersionRangeMax;
std::string Version;
unsigned int VersionMajor = 0;
unsigned int VersionMinor = 0;
unsigned int VersionPatch = 0;
unsigned int VersionTweak = 0;
unsigned int VersionCount = 0;
+ std::string VersionMax;
+ unsigned int VersionMaxMajor = 0;
+ unsigned int VersionMaxMinor = 0;
+ unsigned int VersionMaxPatch = 0;
+ unsigned int VersionMaxTweak = 0;
+ unsigned int VersionMaxCount = 0;
bool VersionExact = false;
std::string FileFound;
std::string VersionFound;