Add support for X11+EGL.
[freeglut] / android_toolchain.cmake
index ef3bb61..93498c6 100644 (file)
@@ -3,4 +3,6 @@ SET(CMAKE_SYSTEM_NAME Linux)  # Tell CMake we're cross-compiling
 include(CMakeForceCompiler)
 # Prefix detection only works with compiler id "GNU"
 CMAKE_FORCE_C_COMPILER(arm-linux-androideabi-gcc GNU)
+# '-DANDROID' is the Android build system convention
+ADD_DEFINITIONS(-DANDROID)
 SET(ANDROID TRUE)