summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-18 14:19:33 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-18 14:19:33 (GMT)
commit27244a1fdef646ea791e28119cefc57c4c967564 (patch)
tree6ed62309ee34fb3e01646a301acf9939c4414b7b /Source/cmake.cxx
parent0044ce71bce5e9329356d0cb6bc67ea30142b9b2 (diff)
downloadCMake-27244a1fdef646ea791e28119cefc57c4c967564.zip
CMake-27244a1fdef646ea791e28119cefc57c4c967564.tar.gz
CMake-27244a1fdef646ea791e28119cefc57c4c967564.tar.bz2
ENH: build codeblocks generator also on Windows
Alex
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx21
1 files changed, 14 insertions, 7 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 49ce652..2746c38 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -70,9 +70,12 @@
#endif
#include "cmGlobalUnixMakefileGenerator3.h"
+#if !defined(__CYGWIN__) && !defined(CMAKE_BOOT_MINGW)
+# include "cmExtraCodeBlocksGenerator.h"
+#endif
+
#ifdef CMAKE_USE_KDEVELOP
# include "cmGlobalKdevelopGenerator.h"
-# include "cmExtraCodeBlocksGenerator.h"
#endif
#include <stdlib.h> // required for atoi
@@ -1472,15 +1475,17 @@ void cmake::AddExtraGenerator(const char* name,
void cmake::AddDefaultExtraGenerators()
{
+#if defined(CMAKE_BUILD_WITH_CMAKE)
#if defined(_WIN32) && !defined(__CYGWIN__)
-# if !defined(CMAKE_BOOT_MINGW)
- // e.g. codeblocks, kdevelop4 ?
-# endif
+ // e.g. kdevelop4 ?
#endif
-// e.g. eclipse ?
-#ifdef CMAKE_USE_KDEVELOP
- this->AddExtraGenerator(cmExtraCodeBlocksGenerator::GetActualName(),
+
+#if !defined(__CYGWIN__)
+ this->AddExtraGenerator(cmExtraCodeBlocksGenerator::GetActualName(),
&cmExtraCodeBlocksGenerator::New);
+#endif
+
+#ifdef CMAKE_USE_KDEVELOP
this->AddExtraGenerator(cmGlobalKdevelopGenerator::GetActualName(),
&cmGlobalKdevelopGenerator::New);
// for kdevelop also add the generator with just the name of the
@@ -1488,6 +1493,8 @@ void cmake::AddDefaultExtraGenerators()
this->ExtraGenerators[cmGlobalKdevelopGenerator::GetActualName()]
= &cmGlobalKdevelopGenerator::New;
#endif
+
+#endif
}