diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-06-13 15:10:59 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2016-06-13 15:16:12 (GMT) |
commit | 919db25c3b54f0303a19abb4a9e4f16056a3c1b6 (patch) | |
tree | efac4b1898fa5fbe07a117fd8a20fce2284e5513 /Source/cmFindPackageCommand.h | |
parent | ebf18df58083c90d4ba06ab896dfad8df9fe6ade (diff) | |
download | CMake-919db25c3b54f0303a19abb4a9e4f16056a3c1b6.zip CMake-919db25c3b54f0303a19abb4a9e4f16056a3c1b6.tar.gz CMake-919db25c3b54f0303a19abb4a9e4f16056a3c1b6.tar.bz2 |
cmFindPackageCommand: remove duplicate paths from error message
Fixes #15252.
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 eff6b80..00db22b 100644 --- a/Source/cmFindPackageCommand.h +++ b/Source/cmFindPackageCommand.h @@ -159,6 +159,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; }; |