summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmFindPackageCommand.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index afc63a5..f955653 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -2220,23 +2220,17 @@ bool cmFileListGeneratorBase::Consider(std::string const& fullPath,
class cmFindPackageFileList : public cmFileList
{
public:
- cmFindPackageFileList(cmFindPackageCommand* const fpc,
- bool const use_suffixes = true)
+ cmFindPackageFileList(cmFindPackageCommand* const fpc)
: FPC(fpc)
- , UseSuffixes(use_suffixes)
{
}
private:
bool Visit(std::string const& fullPath) override
{
- if (this->UseSuffixes) {
- return this->FPC->SearchDirectory(fullPath);
- }
- return this->FPC->CheckDirectory(fullPath);
+ return this->FPC->SearchDirectory(fullPath);
}
cmFindPackageCommand* const FPC;
- bool const UseSuffixes;
};
namespace {