summaryrefslogtreecommitdiffstats
path: root/Source/cmBuildCommand.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-12 08:04:07 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-09-12 16:16:17 (GMT)
commitf0ecb123981c6b383a55f7d75e023cf4310f2074 (patch)
tree2383f60568a6c4e0fe224802456fae5eeefc6a21 /Source/cmBuildCommand.h
parent9602bcfc62d50d7bb302b02ae3b1f9afe941bae7 (diff)
downloadCMake-f0ecb123981c6b383a55f7d75e023cf4310f2074.zip
CMake-f0ecb123981c6b383a55f7d75e023cf4310f2074.tar.gz
CMake-f0ecb123981c6b383a55f7d75e023cf4310f2074.tar.bz2
cmBuildCommand: Port away from cmCommand
Ref: #19499
Diffstat (limited to 'Source/cmBuildCommand.h')
-rw-r--r--Source/cmBuildCommand.h42
1 files changed, 2 insertions, 40 deletions
diff --git a/Source/cmBuildCommand.h b/Source/cmBuildCommand.h
index d373103..45aa71d 100644
--- a/Source/cmBuildCommand.h
+++ b/Source/cmBuildCommand.h
@@ -8,47 +8,9 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmBuildCommand
- * \brief build_command command
- *
- * cmBuildCommand implements the build_command CMake command
- */
-class cmBuildCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmBuildCommand>();
- }
-
- /**
- * 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;
-
- /**
- * The primary command signature with optional, KEYWORD-based args.
- */
- virtual bool MainSignature(std::vector<std::string> const& args);
-
- /**
- * Legacy "exactly 2 args required" signature.
- */
- virtual bool TwoArgsSignature(std::vector<std::string> const& args);
-
-private:
- bool IgnoreErrors() const;
-};
+bool cmBuildCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif