taka-no-me / android-cmake

CMake toolchain file and other scripts for the Android NDK
1.22k stars 438 forks source link

Switch between clang and gcc #65

Open philberty opened 8 years ago

philberty commented 8 years ago

I currently don't see any way to switch between clang or gcc. The NDK comes bundled with both compilers. This is a fantastic cmake plugin by the way thanks for sharing!

hextriclosan commented 8 years ago

ANDROID_TOOLCHAIN_NAME , isn't ?

SRombauts commented 8 years ago

You can call cmake with the command line -DANDROID_TOOLCHAIN_NAME=standalone-clang

edit: but this has issues, as I discovered latter: CMAKE_COMPILER_IS_GNUCXX is set!