[vlc-devel] [PATCH 1/2] contrib: cmake: set CMAKE_SYSTEM_PROCESSOR variable

Tristan Matthews tmatth at videolan.org
Thu Jan 11 05:16:18 CET 2018


This is needed to build aom for non-GNU/Linux using our toolchain.cmake
---
 contrib/src/main.mak | 1 +
 1 file changed, 1 insertion(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index b20a5675eb..0398a5ad1a 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -466,6 +466,7 @@ ifndef WITH_OPTIMIZATION
 else
 	echo "set(CMAKE_BUILD_TYPE Release)" >> $@
 endif
+	echo "set(CMAKE_SYSTEM_PROCESSOR $(ARCH))" >> $@
 ifdef HAVE_WIN32
 ifdef HAVE_WINDOWSPHONE
 	echo "set(CMAKE_SYSTEM_NAME WindowsPhone)" >> $@
-- 
2.15.1



More information about the vlc-devel mailing list