summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-02 16:31:47 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commitf42dad7a5e8656b8eee9b9b928ab3ce9ba90fbf8 (patch)
tree0f6761cdfb6e9fe2e6dd20d57d0abb474080c0ff /Source/cmIncludeCommand.h
parentfb57537a830444cd7ced203f92505bebd510f91a (diff)
downloadCMake-f42dad7a5e8656b8eee9b9b928ab3ce9ba90fbf8.zip
CMake-f42dad7a5e8656b8eee9b9b928ab3ce9ba90fbf8.tar.gz
CMake-f42dad7a5e8656b8eee9b9b928ab3ce9ba90fbf8.tar.bz2
cmCommand refactor: cmIncludeCommand
Diffstat (limited to 'Source/cmIncludeCommand.h')
-rw-r--r--Source/cmIncludeCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmIncludeCommand.h b/Source/cmIncludeCommand.h
index 94d3fbd..b0dd779 100644
--- a/Source/cmIncludeCommand.h
+++ b/Source/cmIncludeCommand.h
@@ -8,35 +8,15 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmIncludeCommand
+/**
* \brief cmIncludeCommand defines a list of distant
* files that can be "included" in the current list file.
* In almost every sense, this is identical to a C/C++
* #include command. Arguments are first expended as usual.
*/
-class cmIncludeCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmIncludeCommand>();
- }
-
- /**
- * 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;
-};
+bool cmIncludeCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif