diff options
author | Brad King <brad.king@kitware.com> | 2020-01-15 18:31:50 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-15 18:32:00 (GMT) |
commit | f11b8342a0cae42b42e47428e34577f266fd314c (patch) | |
tree | ae97522de60007aa532924a689fb06182b2fb55d /Source/cmInstallProgramsCommand.cxx | |
parent | e125d50ddf7fc1a0df77fb0de7ca97db00277ee2 (diff) | |
parent | 328f586be7744350fbb5162dbb39eba255e68a6e (diff) | |
download | CMake-f11b8342a0cae42b42e47428e34577f266fd314c.zip CMake-f11b8342a0cae42b42e47428e34577f266fd314c.tar.gz CMake-f11b8342a0cae42b42e47428e34577f266fd314c.tar.bz2 |
Merge topic 'modernize-memory-management'
328f586be7 cmAlgorithms.h: remove obsolete helpers
f466cea3c9 cmMakefile: modernize memory management
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4215
Diffstat (limited to 'Source/cmInstallProgramsCommand.cxx')
-rw-r--r-- | Source/cmInstallProgramsCommand.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmInstallProgramsCommand.cxx b/Source/cmInstallProgramsCommand.cxx index 2088eae..2fd9bad 100644 --- a/Source/cmInstallProgramsCommand.cxx +++ b/Source/cmInstallProgramsCommand.cxx @@ -2,6 +2,8 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmInstallProgramsCommand.h" +#include <cm/memory> + #include "cmExecutionStatus.h" #include "cmGeneratorExpression.h" #include "cmGlobalGenerator.h" @@ -95,7 +97,7 @@ static void FinalAction(cmMakefile& makefile, std::string const& dest, std::vector<std::string> no_configurations; cmInstallGenerator::MessageLevel message = cmInstallGenerator::SelectMessageLevel(&makefile); - makefile.AddInstallGenerator(new cmInstallFilesGenerator( + makefile.AddInstallGenerator(cm::make_unique<cmInstallFilesGenerator>( files, destination.c_str(), true, no_permissions, no_configurations, no_component.c_str(), message, no_exclude_from_all, no_rename)); } |