From 6290ebf68b5f59b7c1b272c242e62377fee4b557 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Wed, 26 Oct 2016 17:34:37 +0200 Subject: [PATCH] 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 --- contrib/src/main.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/src/main.mak b/contrib/src/main.mak index cab32d120b..4537508078 100644 --- a/contrib/src/main.mak +++ b/contrib/src/main.mak @@ -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)" >> $@ endif endif echo "set(CMAKE_C_COMPILER $(CC))" >> $@ -- 2.11.4.GIT