mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
Fix build on Android (host)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user