summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-07-25 16:51:34 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commitcce3600e3f789f6f2984d61c925170f92b35ee7d (patch)
tree69143f9d2f4e3e6940770bf1b41e5f966c54eb94 /Source/cmCommands.cxx
parent3e5eb45ec1fd977b709da6e36966b0b13d185214 (diff)
downloadCMake-cce3600e3f789f6f2984d61c925170f92b35ee7d.zip
CMake-cce3600e3f789f6f2984d61c925170f92b35ee7d.tar.gz
CMake-cce3600e3f789f6f2984d61c925170f92b35ee7d.tar.bz2
cmCommand refactor: cmForEachCommand
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index ea9bddb..f4f4c4a 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -133,7 +133,7 @@ void GetScriptingCommands(cmState* state)
state->AddBuiltinCommand("find_path", cm::make_unique<cmFindPathCommand>());
state->AddBuiltinCommand("find_program",
cm::make_unique<cmFindProgramCommand>());
- state->AddBuiltinCommand("foreach", cm::make_unique<cmForEachCommand>());
+ state->AddBuiltinCommand("foreach", cmForEachCommand);
state->AddBuiltinCommand("function", cm::make_unique<cmFunctionCommand>());
state->AddBuiltinCommand("get_cmake_property",
cm::make_unique<cmGetCMakePropertyCommand>());