diff options
author | Brad King <brad.king@kitware.com> | 2023-11-06 23:34:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-07 14:13:25 (GMT) |
commit | 85627a93c92afb628e2eb22f380966b9a0f45a8f (patch) | |
tree | cedda7359ade798b4d097a25d05143f16c43f846 /Source/CTest/cmCTestBuildCommand.h | |
parent | 641c02a3ce5bb693ca6a9bd125dbefe4906fd9e5 (diff) | |
download | CMake-85627a93c92afb628e2eb22f380966b9a0f45a8f.zip CMake-85627a93c92afb628e2eb22f380966b9a0f45a8f.tar.gz CMake-85627a93c92afb628e2eb22f380966b9a0f45a8f.tar.bz2 |
cmCTestBuildCommand: Avoid requiring complete cmGlobalGenerator type publicly
Diffstat (limited to 'Source/CTest/cmCTestBuildCommand.h')
-rw-r--r-- | Source/CTest/cmCTestBuildCommand.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/CTest/cmCTestBuildCommand.h b/Source/CTest/cmCTestBuildCommand.h index 1254dad..3b7f4f9 100644 --- a/Source/CTest/cmCTestBuildCommand.h +++ b/Source/CTest/cmCTestBuildCommand.h @@ -5,14 +5,13 @@ #include "cmConfigure.h" // IWYU pragma: keep #include <string> -#include <utility> #include <vector> #include <cm/memory> #include "cmCTestHandlerCommand.h" -#include "cmCommand.h" +class cmCommand; class cmCTestBuildHandler; class cmCTestGenericHandler; class cmExecutionStatus; @@ -31,13 +30,7 @@ public: /** * This is a virtual constructor for the command. */ - std::unique_ptr<cmCommand> Clone() override - { - auto ni = cm::make_unique<cmCTestBuildCommand>(); - ni->CTest = this->CTest; - ni->CTestScriptHandler = this->CTestScriptHandler; - return std::unique_ptr<cmCommand>(std::move(ni)); - } + std::unique_ptr<cmCommand> Clone() override; /** * The name of the command as specified in CMakeList.txt. |