diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-12 08:09:06 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-12 16:16:17 (GMT) |
commit | 28cf1271ed6051af46ff68f52a8c9c0435ca1234 (patch) | |
tree | 87b30137944697367e8e8359380cda6e54cd1aaa /Source/cmEnableLanguageCommand.h | |
parent | 41b0d60f48c3d8d882ec25b56d638b392121fcc8 (diff) | |
download | CMake-28cf1271ed6051af46ff68f52a8c9c0435ca1234.zip CMake-28cf1271ed6051af46ff68f52a8c9c0435ca1234.tar.gz CMake-28cf1271ed6051af46ff68f52a8c9c0435ca1234.tar.bz2 |
cmEnableLanguageCommand: Port away from cmCommand
Ref: #19499
Diffstat (limited to 'Source/cmEnableLanguageCommand.h')
-rw-r--r-- | Source/cmEnableLanguageCommand.h | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/Source/cmEnableLanguageCommand.h b/Source/cmEnableLanguageCommand.h index dc43e34..1f8c4ce 100644 --- a/Source/cmEnableLanguageCommand.h +++ b/Source/cmEnableLanguageCommand.h @@ -8,37 +8,9 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; -/** \class cmEnableLanguageCommand - * \brief Specify the name for this build project. - * - * cmEnableLanguageCommand is used to specify a name for this build project. - * It is defined once per set of CMakeList.txt files (including - * all subdirectories). Currently it just sets the name of the workspace - * file for Microsoft Visual C++ - */ -class cmEnableLanguageCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmEnableLanguageCommand>(); - } - - /** - * 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 cmEnableLanguageCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |