diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-18 15:31:38 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-21 03:11:44 (GMT) |
commit | d038beec21fde74977e6ce6604f7fc913066dad6 (patch) | |
tree | d5b279f84625e116ac82d730fa1707ec3139672c /Source/cmIncludeDirectoryCommand.h | |
parent | fdc3ba45832456fc17cff58850b16a02cee30e7c (diff) | |
download | CMake-d038beec21fde74977e6ce6604f7fc913066dad6.zip CMake-d038beec21fde74977e6ce6604f7fc913066dad6.tar.gz CMake-d038beec21fde74977e6ce6604f7fc913066dad6.tar.bz2 |
cmIncludeDirectoryCommand: Port away from cmCommand
Diffstat (limited to 'Source/cmIncludeDirectoryCommand.h')
-rw-r--r-- | Source/cmIncludeDirectoryCommand.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/Source/cmIncludeDirectoryCommand.h b/Source/cmIncludeDirectoryCommand.h index bcaae9d..66caff7 100644 --- a/Source/cmIncludeDirectoryCommand.h +++ b/Source/cmIncludeDirectoryCommand.h @@ -8,40 +8,9 @@ #include <string> #include <vector> -#include <cm/memory> - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmIncludeDirectoryCommand - * \brief Add include directories to the build. - * - * cmIncludeDirectoryCommand is used to specify directory locations - * to search for included files. - */ -class cmIncludeDirectoryCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmIncludeDirectoryCommand>(); - } - - /** - * 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: - // used internally - void GetIncludes(const std::string& arg, std::vector<std::string>& incs); - void NormalizeInclude(std::string& inc); -}; +bool cmIncludeDirectoryCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |