summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 20:41:14 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:46 (GMT)
commit32c38a269a4564b2e6ceb88e4012bfe9d6aed062 (patch)
tree55a5bb165426a7a744c61cd8bb4789f902226cda
parent4a960f7186c5bccb1d35326829fac772578b55c1 (diff)
downloadCMake-32c38a269a4564b2e6ceb88e4012bfe9d6aed062.zip
CMake-32c38a269a4564b2e6ceb88e4012bfe9d6aed062.tar.gz
CMake-32c38a269a4564b2e6ceb88e4012bfe9d6aed062.tar.bz2
clang-tidy: fix `modernize-make-unique` lints
-rw-r--r--Source/cmLocalVisualStudioGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx
index c8cfa4e..58d46f1 100644
--- a/Source/cmLocalVisualStudioGenerator.cxx
+++ b/Source/cmLocalVisualStudioGenerator.cxx
@@ -4,6 +4,8 @@
#include <utility>
+#include <cm/memory>
+
#include "windows.h"
#include "cmCustomCommand.h"
@@ -105,7 +107,7 @@ cmLocalVisualStudioGenerator::MaybeCreateImplibDir(cmGeneratorTarget* target,
// Add a pre-build event to create the directory.
cmCustomCommandLines commands = cmMakeSingleCommandLine(
{ cmSystemTools::GetCMakeCommand(), "-E", "make_directory", impDir });
- pcc.reset(new cmCustomCommand());
+ pcc = cm::make_unique<cmCustomCommand>();
pcc->SetCommandLines(commands);
pcc->SetStdPipesUTF8(true);
pcc->SetEscapeOldStyle(false);