summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 14:47:14 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 14:47:14 (GMT)
commit56234aed4bfc87b691897056c4535b4d8cb3098f (patch)
treedffd371693861754131167309983b1ae2109ebf0 /Source/cmakemain.cxx
parent21c818340e783a0702071d279351081d01c88e18 (diff)
downloadCMake-56234aed4bfc87b691897056c4535b4d8cb3098f.zip
CMake-56234aed4bfc87b691897056c4535b4d8cb3098f.tar.gz
CMake-56234aed4bfc87b691897056c4535b4d8cb3098f.tar.bz2
PERF: Remove several classes from the bootstrap and so making bootstrap smaller and faster
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 113d299..be32840 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -19,6 +19,8 @@
#include "cmCacheManager.h"
#include "cmDynamicLoader.h"
#include "cmListFileCache.h"
+
+#ifdef CMAKE_BUILD_WITH_CMAKE
#include "cmDocumentation.h"
//----------------------------------------------------------------------------
@@ -98,6 +100,7 @@ static const cmDocumentationEntry cmDocumentationNOTE[] =
" cmake .", 0},
{0,0,0}
};
+#endif
int do_cmake(int ac, char** av);
void updateProgress(const char *msg, float prog, void *cd);
@@ -115,7 +118,9 @@ int main(int ac, char** av)
int do_cmake(int ac, char** av)
{
+#ifdef CMAKE_BUILD_WITH_CMAKE
cmDocumentation doc;
+#endif
int nocwd = 0;
if ( cmSystemTools::GetCurrentWorkingDirectory().size() == 0 )
@@ -124,6 +129,7 @@ int do_cmake(int ac, char** av)
nocwd = 1;
}
+#ifdef CMAKE_BUILD_WITH_CMAKE
if(doc.CheckOptions(ac, av) || nocwd)
{
// Construct and print requested documentation.
@@ -156,6 +162,7 @@ int do_cmake(int ac, char** av)
}
return result;
}
+#endif
bool wiz = false;
bool command = false;