summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-10-12 13:50:36 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-10-12 13:50:36 (GMT)
commit832a302ca214f6675bd6969b5d41b76679dadcc1 (patch)
tree4e2b07f8966a196f9038cd779b7885b89a229fec /Source/cmake.cxx
parent800784175f98d7fe63412416e5a38defa52ff216 (diff)
downloadCMake-832a302ca214f6675bd6969b5d41b76679dadcc1.zip
CMake-832a302ca214f6675bd6969b5d41b76679dadcc1.tar.gz
CMake-832a302ca214f6675bd6969b5d41b76679dadcc1.tar.bz2
BUG: do not build kdevlop stuff when bootstrapping
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index b365353..dda4acd 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -23,6 +23,14 @@
#include "cmCommand.h"
#include "cmVariableWatch.h"
+// only build kdevelop generator on non-windows platforms
+// when not bootstrapping cmake
+#if !defined(_WIN32)
+# if defined(CMAKE_BUILD_WITH_CMAKE)
+# define CMAKE_USE_KDEVELOP
+# endif
+#endif
+
// include the generator
#if defined(_WIN32) && !defined(__CYGWIN__)
# include "cmGlobalVisualStudio6Generator.h"
@@ -37,7 +45,10 @@
#else
#endif
#include "cmGlobalUnixMakefileGenerator.h"
-#include "cmGlobalKdevelopGenerator.h"
+
+#ifdef CMAKE_USE_KDEVELOP
+# include "cmGlobalKdevelopGenerator.h"
+#endif
#include <stdlib.h> // required for atoi
@@ -1415,7 +1426,7 @@ void cmake::AddDefaultGenerators()
#endif
m_Generators[cmGlobalUnixMakefileGenerator::GetActualName()] =
&cmGlobalUnixMakefileGenerator::New;
-#if !defined(_WIN32)
+#ifdef CMAKE_USE_KDEVELOP
m_Generators[cmGlobalKdevelopGenerator::GetActualName()] =
&cmGlobalKdevelopGenerator::New;
#endif