summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-09 09:56:34 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:20 (GMT)
commit07ea93de5447e0bc20b4632fa61d965c02876cc8 (patch)
tree0202088867f5f93d129626482ca8cb37f5ed9326 /Source/cmCommands.cxx
parentca3b9186bb0830b26765bd764d5d9d69cf93e33d (diff)
downloadCMake-07ea93de5447e0bc20b4632fa61d965c02876cc8.zip
CMake-07ea93de5447e0bc20b4632fa61d965c02876cc8.tar.gz
CMake-07ea93de5447e0bc20b4632fa61d965c02876cc8.tar.bz2
cmCommand refactor: cmWriteFileCommand
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index 0fa2529..6f6ca50 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -204,8 +204,7 @@ void GetScriptingCommands(cmState* state)
cmCMakeHostSystemInformationCommand);
state->AddBuiltinCommand("remove", cmRemoveCommand);
state->AddBuiltinCommand("variable_watch", cmVariableWatchCommand);
- state->AddBuiltinCommand("write_file",
- cm::make_unique<cmWriteFileCommand>());
+ state->AddBuiltinCommand("write_file", cmWriteFileCommand);
state->AddDisallowedCommand(
"build_name", cm::make_unique<cmBuildNameCommand>(), cmPolicies::CMP0036,