summaryrefslogtreecommitdiff
path: root/Source/cmReturnCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmReturnCommand.h')
-rw-r--r--Source/cmReturnCommand.h25
1 files changed, 3 insertions, 22 deletions
diff --git a/Source/cmReturnCommand.h b/Source/cmReturnCommand.h
index ef3961459..2404a363d 100644
--- a/Source/cmReturnCommand.h
+++ b/Source/cmReturnCommand.h
@@ -8,29 +8,10 @@
#include <string>
#include <vector>
-#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.
- */
- cmCommand* Clone() override { return new 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