summaryrefslogtreecommitdiffstats
path: root/Source/cmMathCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-04 16:35:43 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commit71724633a24fccfdf3d56a19176d8afe637be843 (patch)
tree2d21e3a116cc34aee647054ad8543568c7cbc2e1 /Source/cmMathCommand.h
parent2b58ae75773ff826bb1c3e6c5a3bad31c5292f00 (diff)
downloadCMake-71724633a24fccfdf3d56a19176d8afe637be843.zip
CMake-71724633a24fccfdf3d56a19176d8afe637be843.tar.gz
CMake-71724633a24fccfdf3d56a19176d8afe637be843.tar.bz2
cmCommand refactor: cmMathCommand
Diffstat (limited to 'Source/cmMathCommand.h')
-rw-r--r--Source/cmMathCommand.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/Source/cmMathCommand.h b/Source/cmMathCommand.h
index 23633d3..ac1957c 100644
--- a/Source/cmMathCommand.h
+++ b/Source/cmMathCommand.h
@@ -8,33 +8,10 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
/// Mathematical expressions: math(EXPR ...) command.
-class cmMathCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmMathCommand>();
- }
-
- /**
- * 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;
-
-protected:
- bool HandleExprCommand(std::vector<std::string> const& args);
-};
+bool cmMathCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif