summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-16 13:46:42 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-16 13:46:42 (GMT)
commitce624540199a4685e04425a7668e8f2e0384267d (patch)
tree5b0af10cc8c18971ecadcc58884b004ac6c758cc /Source/cmFindPackageCommand.h
parent83ae79442c8bc16cca72977e0671845efe191696 (diff)
parent919db25c3b54f0303a19abb4a9e4f16056a3c1b6 (diff)
downloadCMake-ce624540199a4685e04425a7668e8f2e0384267d.zip
CMake-ce624540199a4685e04425a7668e8f2e0384267d.tar.gz
CMake-ce624540199a4685e04425a7668e8f2e0384267d.tar.bz2
Merge topic 'find_package-duplicate-search-paths'
919db25c cmFindPackageCommand: remove duplicate paths from error message ebf18df5 cmFindPackageCommand: use iterators to loop over configurations
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 9019f1b..2d14be2 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -160,6 +160,21 @@ private:
{
std::string filename;
std::string version;
+
+ bool operator<(ConfigFileInfo const& rhs) const
+ {
+ return this->filename < rhs.filename;
+ }
+
+ bool operator==(ConfigFileInfo const& rhs) const
+ {
+ return this->filename == rhs.filename;
+ }
+
+ bool operator!=(ConfigFileInfo const& rhs) const
+ {
+ return !(*this == rhs);
+ }
};
std::vector<ConfigFileInfo> ConsideredConfigs;
};