diff options
author | Brad King <brad.king@kitware.com> | 2016-06-16 13:46:42 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-06-16 13:46:42 (GMT) |
commit | ce624540199a4685e04425a7668e8f2e0384267d (patch) | |
tree | 5b0af10cc8c18971ecadcc58884b004ac6c758cc /Source/cmFindPackageCommand.h | |
parent | 83ae79442c8bc16cca72977e0671845efe191696 (diff) | |
parent | 919db25c3b54f0303a19abb4a9e4f16056a3c1b6 (diff) | |
download | CMake-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.h | 15 |
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; }; |