diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-04-08 07:55:52 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-07-22 13:27:56 (GMT) |
commit | dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667 (patch) | |
tree | d631728ba6308e21581ab455fd341d9fc92dd11d /Source/cmCommands.cxx | |
parent | 28f2d12a055e025aa0ddeb9842f204f29181eaff (diff) | |
download | CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.zip CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.gz CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.bz2 |
cmState: Support BuiltinCommands as free functions
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r-- | Source/cmCommands.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx index 9ae2f71..f351ff8 100644 --- a/Source/cmCommands.cxx +++ b/Source/cmCommands.cxx @@ -162,7 +162,7 @@ void GetScriptingCommands(cmState* state) state->AddBuiltinCommand("option", cm::make_unique<cmOptionCommand>()); state->AddBuiltinCommand("cmake_parse_arguments", cm::make_unique<cmParseArgumentsCommand>()); - state->AddBuiltinCommand("return", cm::make_unique<cmReturnCommand>()); + state->AddBuiltinCommand("return", cmReturnCommand); state->AddBuiltinCommand("separate_arguments", cm::make_unique<cmSeparateArgumentsCommand>()); state->AddBuiltinCommand("set", cm::make_unique<cmSetCommand>()); @@ -255,8 +255,7 @@ void GetProjectCommands(cmState* state) cm::make_unique<cmDefinePropertyCommand>()); state->AddBuiltinCommand("enable_language", cm::make_unique<cmEnableLanguageCommand>()); - state->AddBuiltinCommand("enable_testing", - cm::make_unique<cmEnableTestingCommand>()); + state->AddBuiltinCommand("enable_testing", cmEnableTestingCommand); state->AddBuiltinCommand("get_source_file_property", cm::make_unique<cmGetSourceFilePropertyCommand>()); state->AddBuiltinCommand("get_target_property", |