8084d08cf9
It has problems, and the Android NDK provides one that works fine.
12 lines
458 B
Plaintext
12 lines
458 B
Plaintext
# Cross-compiling for Android is handled by the NDK's own provided toolchain,
|
|
# which as of this writing, should be in
|
|
# ${ndk_root}/build/cmake/android.toolchain.cmake
|
|
#
|
|
# Certain older NDK versions may also need to explicitly pick the libc++
|
|
# runtime. So for example:
|
|
# cmake .. -DANDROID_STL=c++_shared \
|
|
# -DCMAKE_TOOLCHAIN_FILE=${ndk_root}/build/cmake/android.toolchain.cmake
|
|
#
|
|
|
|
MESSAGE(FATAL_ERROR "Use the toolchain provided by the Android NDK")
|