Commit 6290ebf6 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

contrib: define CMAKE_SYSTEM_NAME when building for Android

Otherwise CMake doesn't understand properly it's cross compiling
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent b044f2dd
......@@ -482,6 +482,7 @@ ifdef HAVE_ANDROID
# Set it to "" right away to short-circuit this behaviour
echo "set(CMAKE_CXX_SYSROOT_FLAG \"\")" >> $@
echo "set(CMAKE_C_SYSROOT_FLAG \"\")" >> $@
echo "set(CMAKE_SYSTEM_NAME Android)" >> $@
echo "set(CMAKE_C_COMPILER $(CC))" >> $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment