diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b669eb74..870cd785b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,12 @@ if(CORRADE_TARGET_NACL OR CORRADE_TARGET_EMSCRIPTEN) set(TARGET_GLES2 1) endif() +# If targeting Android, set explicit OpenGL ES support. Decision between 2.0 +# and 3.0 is up to the user +if(CORRADE_TARGET_ANDROID) + set(TARGET_GLES 1) +endif() + # NaCl newlib toolchain supports only static linking, dynamic linking is # meaningless on Emscripten if(CORRADE_TARGET_NACL_NEWLIB OR CORRADE_TARGET_EMSCRIPTEN)