diff options
author | Brad King <brad.king@kitware.com> | 2019-09-12 13:14:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-09-12 13:14:48 (GMT) |
commit | d83bff86409c0e414046d2aeb75946037e0d2de3 (patch) | |
tree | 346504c76743bc74b7ad49890e130765c52311f0 /Source/cmFindPackageCommand.cxx | |
parent | 5bdff304847995f474797b757fe7a2755de0c1fb (diff) | |
parent | 8a18bb7cdf2478d68e11a5e532b5134ea92b3678 (diff) | |
download | CMake-d83bff86409c0e414046d2aeb75946037e0d2de3.zip CMake-d83bff86409c0e414046d2aeb75946037e0d2de3.tar.gz CMake-d83bff86409c0e414046d2aeb75946037e0d2de3.tar.bz2 |
Merge topic 'free-find-commands'
8a18bb7cdf cmFind*: Port away from cmCommand
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3800
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); +} |