summaryrefslogtreecommitdiffstats
path: root/Source/cmFindProgramCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-12 13:14:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-12 13:14:48 (GMT)
commitd83bff86409c0e414046d2aeb75946037e0d2de3 (patch)
tree346504c76743bc74b7ad49890e130765c52311f0 /Source/cmFindProgramCommand.cxx
parent5bdff304847995f474797b757fe7a2755de0c1fb (diff)
parent8a18bb7cdf2478d68e11a5e532b5134ea92b3678 (diff)
downloadCMake-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/cmFindProgramCommand.cxx')
-rw-r--r--Source/cmFindProgramCommand.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index a2db65c..e0a3fbf 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -88,14 +88,14 @@ struct cmFindProgramHelper
}
};
-cmFindProgramCommand::cmFindProgramCommand()
+cmFindProgramCommand::cmFindProgramCommand(cmExecutionStatus& status)
+ : cmFindBase(status)
{
this->NamesPerDirAllowed = true;
}
// cmFindProgramCommand
-bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn,
- cmExecutionStatus&)
+bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
{
this->VariableDocumentation = "Path to a program.";
this->CMakePathName = "PROGRAM";
@@ -270,3 +270,9 @@ std::string cmFindProgramCommand::GetBundleExecutable(
return executable;
}
+
+bool cmFindProgram(std::vector<std::string> const& args,
+ cmExecutionStatus& status)
+{
+ return cmFindProgramCommand(status).InitialPass(args);
+}