summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-08-09 10:09:39 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:20 (GMT)
commit9413952c42d83fb10a70ee96e91a20c55c5f2edc (patch)
treefed20738ecd51a0aeb33ef2482a869288e2835cd /Source/cmCommands.cxx
parent07ea93de5447e0bc20b4632fa61d965c02876cc8 (diff)
downloadCMake-9413952c42d83fb10a70ee96e91a20c55c5f2edc.zip
CMake-9413952c42d83fb10a70ee96e91a20c55c5f2edc.tar.gz
CMake-9413952c42d83fb10a70ee96e91a20c55c5f2edc.tar.bz2
cmCommand refactor: cmCMakePolicyCommand
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 6f6ca50..df61b4e 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -118,8 +118,7 @@ void GetScriptingCommands(cmState* state)
{
state->AddBuiltinCommand("break", cmBreakCommand);
state->AddBuiltinCommand("cmake_minimum_required", cmCMakeMinimumRequired);
- state->AddBuiltinCommand("cmake_policy",
- cm::make_unique<cmCMakePolicyCommand>());
+ state->AddBuiltinCommand("cmake_policy", cmCMakePolicyCommand);
state->AddBuiltinCommand("configure_file", cmConfigureFileCommand);
state->AddBuiltinCommand("continue", cmContinueCommand);
state->AddBuiltinCommand("exec_program", cmExecProgramCommand);