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/cmFindProgramCommand.h | |
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/cmFindProgramCommand.h')
-rw-r--r-- | Source/cmFindProgramCommand.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/Source/cmFindProgramCommand.h b/Source/cmFindProgramCommand.h index 40e455e..043b43c 100644 --- a/Source/cmFindProgramCommand.h +++ b/Source/cmFindProgramCommand.h @@ -8,9 +8,6 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" #include "cmFindBase.h" class cmExecutionStatus; @@ -26,21 +23,9 @@ class cmExecutionStatus; class cmFindProgramCommand : public cmFindBase { public: - cmFindProgramCommand(); - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmFindProgramCommand>(); - } - - /** - * This is called when the command is first encountered in - * the CMakeLists.txt file. - */ - bool InitialPass(std::vector<std::string> const& args, - cmExecutionStatus& status) override; + cmFindProgramCommand(cmExecutionStatus& status); + + bool InitialPass(std::vector<std::string> const& args); private: std::string FindProgram(); @@ -51,4 +36,7 @@ private: std::string GetBundleExecutable(std::string const& bundlePath); }; +bool cmFindProgram(std::vector<std::string> const& args, + cmExecutionStatus& status); + #endif |