diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-10 19:44:48 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-10 20:13:11 (GMT) |
commit | 8a18bb7cdf2478d68e11a5e532b5134ea92b3678 (patch) | |
tree | e0210e119c21d5326041969831ed2e97b1ed413c /Source/cmFindPackageCommand.cxx | |
parent | 95d4a2d05562c5f0a4113527d31dadef4d7756bd (diff) | |
download | CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.zip CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.tar.gz CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.tar.bz2 |
cmFind*: Port away from cmCommand
Diffstat (limited to 'Source/cmFindPackageCommand.cxx')
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 9132760..d99b20b 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -85,7 +85,8 @@ void cmFindPackageCommand::Sort(std::vector<std::string>::iterator begin, // else do not sort } -cmFindPackageCommand::cmFindPackageCommand() +cmFindPackageCommand::cmFindPackageCommand(cmExecutionStatus& status) + : cmFindCommon(status) { this->CMakePathName = "PACKAGE"; this->Quiet = false; @@ -143,8 +144,7 @@ void cmFindPackageCommand::AppendSearchPathGroups() std::make_pair(PathLabel::SystemRegistry, cmSearchPath(this))); } -bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args, - cmExecutionStatus&) +bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args) { if (args.empty()) { this->SetError("called with incorrect number of arguments"); @@ -2282,3 +2282,9 @@ bool cmFindPackageCommand::SearchAppBundlePrefix(std::string const& prefix_in) } // TODO: Debug cmsys::Glob double slash problem. + +bool cmFindPackage(std::vector<std::string> const& args, + cmExecutionStatus& status) +{ + return cmFindPackageCommand(status).InitialPass(args); +} |