summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-22 13:22:37 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-22 13:23:50 (GMT)
commit914d21de58094d461c9f86738136fb034a691113 (patch)
tree7cdcfd42906fc81f9dfe56c06dfdf245c3531da5
parentfc17277bdad832e45991de60090c8688b60855fa (diff)
downloadCMake-914d21de58094d461c9f86738136fb034a691113.zip
CMake-914d21de58094d461c9f86738136fb034a691113.tar.gz
CMake-914d21de58094d461c9f86738136fb034a691113.tar.bz2
bootstrap: Enable add_compile_definitions command
Make the command available to CMake's own CMake code.
-rw-r--r--Source/cmCommands.cxx4
-rwxr-xr-xbootstrap1
2 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index 3bc4f0e..27f2156 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -225,6 +225,8 @@ void GetScriptingCommands(cmState* state)
void GetProjectCommands(cmState* state)
{
+ state->AddBuiltinCommand("add_compile_definitions",
+ cmAddCompileDefinitionsCommand);
state->AddBuiltinCommand("add_custom_command", cmAddCustomCommandCommand);
state->AddBuiltinCommand("add_custom_target", cmAddCustomTargetCommand);
state->AddBuiltinCommand("add_definitions", cmAddDefinitionsCommand);
@@ -275,8 +277,6 @@ void GetProjectCommands(cmState* state)
cmTargetPrecompileHeadersCommand);
#if !defined(CMAKE_BOOTSTRAP)
- state->AddBuiltinCommand("add_compile_definitions",
- cmAddCompileDefinitionsCommand);
state->AddBuiltinCommand("add_compile_options", cmAddCompileOptionsCommand);
state->AddBuiltinCommand("aux_source_directory",
cmAuxSourceDirectoryCommand);
diff --git a/bootstrap b/bootstrap
index d5b071e..a79aeae 100755
--- a/bootstrap
+++ b/bootstrap
@@ -281,6 +281,7 @@ CMAKE_UNUSED_SOURCES="\
"
CMAKE_CXX_SOURCES="\
+ cmAddCompileDefinitionsCommand \
cmAddCustomCommandCommand \
cmAddCustomTargetCommand \
cmAddDefinitionsCommand \