mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
cmake: Simplify internal conditions for adding extra generators
They are always present except in the bootstrap `cmake`.
This commit is contained in:
+6
-17
@@ -64,10 +64,6 @@
|
|||||||
# include "cmVariableWatch.h"
|
# include "cmVariableWatch.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CMAKE_BOOTSTRAP)
|
|
||||||
# define CMAKE_USE_ECLIPSE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__MINGW32__) && defined(CMAKE_BOOTSTRAP)
|
#if defined(__MINGW32__) && defined(CMAKE_BOOTSTRAP)
|
||||||
# define CMAKE_BOOT_MINGW
|
# define CMAKE_BOOT_MINGW
|
||||||
#endif
|
#endif
|
||||||
@@ -101,16 +97,13 @@
|
|||||||
#if !defined(CMAKE_BOOTSTRAP)
|
#if !defined(CMAKE_BOOTSTRAP)
|
||||||
# include "cmGlobalNinjaGenerator.h"
|
# include "cmGlobalNinjaGenerator.h"
|
||||||
#endif
|
#endif
|
||||||
#include "cmExtraCodeLiteGenerator.h"
|
|
||||||
|
|
||||||
#if !defined(CMAKE_BOOT_MINGW)
|
#if !defined(CMAKE_BOOTSTRAP)
|
||||||
# include "cmExtraCodeBlocksGenerator.h"
|
# include "cmExtraCodeBlocksGenerator.h"
|
||||||
#endif
|
# include "cmExtraCodeLiteGenerator.h"
|
||||||
#include "cmExtraKateGenerator.h"
|
|
||||||
#include "cmExtraSublimeTextGenerator.h"
|
|
||||||
|
|
||||||
#ifdef CMAKE_USE_ECLIPSE
|
|
||||||
# include "cmExtraEclipseCDT4Generator.h"
|
# include "cmExtraEclipseCDT4Generator.h"
|
||||||
|
# include "cmExtraKateGenerator.h"
|
||||||
|
# include "cmExtraSublimeTextGenerator.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__linux__) || defined(_WIN32)
|
#if defined(__linux__) || defined(_WIN32)
|
||||||
@@ -1137,13 +1130,9 @@ void cmake::AddDefaultExtraGenerators()
|
|||||||
#if !defined(CMAKE_BOOTSTRAP)
|
#if !defined(CMAKE_BOOTSTRAP)
|
||||||
this->ExtraGenerators.push_back(cmExtraCodeBlocksGenerator::GetFactory());
|
this->ExtraGenerators.push_back(cmExtraCodeBlocksGenerator::GetFactory());
|
||||||
this->ExtraGenerators.push_back(cmExtraCodeLiteGenerator::GetFactory());
|
this->ExtraGenerators.push_back(cmExtraCodeLiteGenerator::GetFactory());
|
||||||
this->ExtraGenerators.push_back(cmExtraSublimeTextGenerator::GetFactory());
|
|
||||||
this->ExtraGenerators.push_back(cmExtraKateGenerator::GetFactory());
|
|
||||||
|
|
||||||
# ifdef CMAKE_USE_ECLIPSE
|
|
||||||
this->ExtraGenerators.push_back(cmExtraEclipseCDT4Generator::GetFactory());
|
this->ExtraGenerators.push_back(cmExtraEclipseCDT4Generator::GetFactory());
|
||||||
# endif
|
this->ExtraGenerators.push_back(cmExtraKateGenerator::GetFactory());
|
||||||
|
this->ExtraGenerators.push_back(cmExtraSublimeTextGenerator::GetFactory());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user