Merge pull request #799 from xianglin1998/cross

Disable external libary compile warnning.
This commit is contained in:
Philippe Teuwen
2020-06-18 10:02:02 +02:00
committed by GitHub

View File

@@ -65,7 +65,7 @@ endif (NOT SKIPPYTHON EQUAL 1)
# If build on android cross, we need to init source and build.
if (ANDROID)
set(CFLAGS_EXTERNAL_LIB CFLAGS=--target=${CMAKE_C_COMPILER_TARGET})
set(CFLAGS_EXTERNAL_LIB "CFLAGS=--target=${CMAKE_C_COMPILER_TARGET} -w")
include(ExternalProject)
endif (ANDROID)