summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2019-08-09 14:41:44 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-08-09 14:41:44 (GMT)
commit54e9d38c28d0073f2cc5d690adb5c993e7793c97 (patch)
treeae648e57694ee92687509fdf3d5d6168d653684c /Source/cmCommands.cxx
parentad0e44a18b1e54bcfac38100a13e6ce169d03099 (diff)
downloadCMake-54e9d38c28d0073f2cc5d690adb5c993e7793c97.zip
CMake-54e9d38c28d0073f2cc5d690adb5c993e7793c97.tar.gz
CMake-54e9d38c28d0073f2cc5d690adb5c993e7793c97.tar.bz2
Refactor: Convert all instances of CMAKE_BUILD_WITH_CMAKE to CMAKE_BOOTSTRAP
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index a9be445..8c62c30 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -84,7 +84,7 @@
#include "cmUnsetCommand.h"
#include "cmWhileCommand.h"
-#if defined(CMAKE_BUILD_WITH_CMAKE)
+#if !defined(CMAKE_BOOTSTRAP)
# include "cmAddCompileOptionsCommand.h"
# include "cmAddLinkOptionsCommand.h"
# include "cmAuxSourceDirectoryCommand.h"
@@ -210,7 +210,7 @@ void GetScriptingCommands(cmState* state)
"WHILE ENDWHILE structure. Or its arguments did not "
"match the opening WHILE command.");
-#if defined(CMAKE_BUILD_WITH_CMAKE)
+#if !defined(CMAKE_BOOTSTRAP)
state->AddBuiltinCommand(
"cmake_host_system_information",
cm::make_unique<cmCMakeHostSystemInformationCommand>());
@@ -301,7 +301,7 @@ void GetProjectCommands(cmState* state)
cm::make_unique<cmTryCompileCommand>());
state->AddBuiltinCommand("try_run", cm::make_unique<cmTryRunCommand>());
-#if defined(CMAKE_BUILD_WITH_CMAKE)
+#if !defined(CMAKE_BOOTSTRAP)
state->AddBuiltinCommand("add_compile_definitions",
cm::make_unique<cmAddCompileDefinitionsCommand>());
state->AddBuiltinCommand("add_compile_options",