[vlc-commits] contrib: define CMAKE_SYSTEM_NAME when building for Android

Steve Lhomme git at videolan.org
Wed Nov 16 14:46:51 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Oct 26 17:34:37 2016 +0200| [6290ebf68b5f59b7c1b272c242e62377fee4b557] | committer: 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 <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6290ebf68b5f59b7c1b272c242e62377fee4b557
---

 contrib/src/main.mak | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index cab32d1..4537508 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))" >> $@



More information about the vlc-commits mailing list