|
|
@@ -114,7 +114,9 @@
|
|
|
# include "cmExtraSublimeTextGenerator.h"
|
|
|
#endif
|
|
|
|
|
|
-#if defined(__linux__) || defined(_WIN32)
|
|
|
+// NOTE: the __linux__ macro is predefined on Android host too, but
|
|
|
+// main CMakeLists.txt filters out this generator by host name.
|
|
|
+#if (defined(__linux__) && !defined(__ANDROID__)) || defined(_WIN32)
|
|
|
# include "cmGlobalGhsMultiGenerator.h"
|
|
|
#endif
|
|
|
|
|
|
@@ -2528,7 +2530,7 @@ void cmake::AddDefaultGenerators()
|
|
|
this->Generators.push_back(cmGlobalMinGWMakefileGenerator::NewFactory());
|
|
|
#endif
|
|
|
#if !defined(CMAKE_BOOTSTRAP)
|
|
|
-# if defined(__linux__) || defined(_WIN32)
|
|
|
+# if (defined(__linux__) && !defined(__ANDROID__)) || defined(_WIN32)
|
|
|
this->Generators.push_back(cmGlobalGhsMultiGenerator::NewFactory());
|
|
|
# endif
|
|
|
this->Generators.push_back(cmGlobalUnixMakefileGenerator3::NewFactory());
|