summaryrefslogtreecommitdiff
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-01-26 18:31:48 +0100
committerBrad King <brad.king@kitware.com>2020-02-25 13:14:17 -0500
commit54e4f2ad455817bed165fa1cb3682acbd93a8a1a (patch)
treed522b01b4b3a8f425e4a76c3eaf54a0528634877 /Source/cmCommands.cxx
parent3276f85fd774035221d00b291bfe0c624f6a4831 (diff)
downloadcmake-54e4f2ad455817bed165fa1cb3682acbd93a8a1a.tar.gz
cmake_command: Add command to INVOKE other commands by name
Fixes: #18392
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index 896b6a98de..28b426732c 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -91,6 +91,7 @@
# include "cmAddLinkOptionsCommand.h"
# include "cmAuxSourceDirectoryCommand.h"
# include "cmBuildNameCommand.h"
+# include "cmCMakeCommand.h"
# include "cmCMakeHostSystemInformationCommand.h"
# include "cmExportCommand.h"
# include "cmExportLibraryDependenciesCommand.h"
@@ -196,6 +197,7 @@ void GetScriptingCommands(cmState* state)
"match the opening WHILE command.");
#if !defined(CMAKE_BOOTSTRAP)
+ state->AddBuiltinCommand("cmake_command", cmCMakeCommand);
state->AddBuiltinCommand("cmake_host_system_information",
cmCMakeHostSystemInformationCommand);
state->AddBuiltinCommand("load_cache", cmLoadCacheCommand);