summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-27 12:36:03 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-08-27 12:36:03 (GMT)
commit716eb198198f982d3670ce83927e791103d11fc0 (patch)
tree0f2101364cd966f0ae4b73864e6630c136ac6305 /Source/cmCommands.cxx
parentb8be208408323fad5179754a66cd40d76e9654e8 (diff)
downloadCMake-716eb198198f982d3670ce83927e791103d11fc0.zip
CMake-716eb198198f982d3670ce83927e791103d11fc0.tar.gz
CMake-716eb198198f982d3670ce83927e791103d11fc0.tar.bz2
fixed bootstrap build to not use LoadCOmmandCOmmand
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r--Source/cmCommands.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index 28a83e3..b60a114 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -87,7 +87,13 @@
#include "cmQTWrapUICommand.cxx"
#include "cmWrapExcludeFilesCommand.cxx"
+// on regular builds add in the load command command
+// we do not add it in on the bootstrap because it
+// requires dynaic loading support etc, which makes
+// the bootstrap configure file a mess
+#if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cmLoadCommandCommand.cxx"
+#endif
void GetPredefinedCommands(std::list<cmCommand*>& commands)
{
@@ -130,7 +136,9 @@ void GetPredefinedCommands(std::list<cmCommand*>& commands)
commands.push_back(new cmLinkDirectoriesCommand);
commands.push_back(new cmLinkLibrariesCommand);
commands.push_back(new cmLoadCacheCommand);
+#if defined(CMAKE_BUILD_WITH_CMAKE)
commands.push_back(new cmLoadCommandCommand);
+#endif
commands.push_back(new cmMacroCommand);
commands.push_back(new cmMakeDirectoryCommand);
commands.push_back(new cmMarkAsAdvancedCommand);