X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=android_toolchain.cmake;h=93498c6ebc2ed9e2168b963118cadeecf3662ee8;hb=e03ed4c92640c0252e4bf50dbbfea07bcb75989a;hp=ef3bb61ca6317b994de6a272bb6c8aaf122338e5;hpb=8b08d68ba789289f1744c7d3724c6c6b118ead44;p=freeglut diff --git a/android_toolchain.cmake b/android_toolchain.cmake index ef3bb61..93498c6 100644 --- a/android_toolchain.cmake +++ b/android_toolchain.cmake @@ -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)