1 # Cross-compiling for Android is handled by the NDK's own provided toolchain,
2 # which as of this writing, should be in
3 # ${ndk_root}/build/cmake/android.toolchain.cmake
5 # Certain older NDK versions may also need to explicitly pick the libc++
6 # runtime. So for example:
7 # cmake .. -DANDROID_STL=c++_shared \
8 # -DCMAKE_TOOLCHAIN_FILE=${ndk_root}/build/cmake/android.toolchain.cmake
11 MESSAGE(FATAL_ERROR "Use the toolchain provided by the Android NDK")