mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
modernize: manage cmCommand instances using unique_ptr.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "cmDuration.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -131,7 +132,8 @@ private:
|
||||
int RunConfigurationDashboard();
|
||||
|
||||
// Add ctest command
|
||||
void AddCTestCommand(std::string const& name, cmCTestCommand* command);
|
||||
void AddCTestCommand(std::string const& name,
|
||||
std::unique_ptr<cmCTestCommand> command);
|
||||
|
||||
// Try to remove the binary directory once
|
||||
static bool TryToRemoveBinaryDirectoryOnce(const std::string& directoryPath);
|
||||
|
||||
Reference in New Issue
Block a user