summaryrefslogtreecommitdiffstats
path: root/Source/cmReturnCommand.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-04-08 07:55:52 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-07-22 13:27:56 (GMT)
commitdfaa87f1b3335b2e80f68726fd5e1b3bbd87d667 (patch)
treed631728ba6308e21581ab455fd341d9fc92dd11d /Source/cmReturnCommand.h
parent28f2d12a055e025aa0ddeb9842f204f29181eaff (diff)
downloadCMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.zip
CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.gz
CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.bz2
cmState: Support BuiltinCommands as free functions
Diffstat (limited to 'Source/cmReturnCommand.h')
-rw-r--r--Source/cmReturnCommand.h30
1 files changed, 3 insertions, 27 deletions
diff --git a/Source/cmReturnCommand.h b/Source/cmReturnCommand.h
index e9264d2..2404a36 100644
--- a/Source/cmReturnCommand.h
+++ b/Source/cmReturnCommand.h
@@ -8,34 +8,10 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmReturnCommand
- * \brief Return from a directory or function
- *
- * cmReturnCommand returns from a directory or function
- */
-class cmReturnCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmReturnCommand>();
- }
-
- /**
- * 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;
-};
+/// Return from a directory or function
+bool cmReturnCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif