[vlc-devel] [PATCH] contrib: define CMAKE_SYSTEM_NAME when building for Android
Steve Lhomme
robux4 at videolabs.io
Wed Oct 26 17:34:37 CEST 2016
Otherwise CMake doesn't understand properly it's cross compiling
---
contrib/src/main.mak | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index fbe6d1d..da3eebf 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -488,6 +488,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.8.2
More information about the vlc-devel
mailing list