From bdff7143dcf004ff99ba57bdd74c45c9cc6d6674 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 3 Jun 2016 11:40:09 +0200 Subject: [PATCH] Fix build of android support library with NDK 10. --- submodules/externals/build/support/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/submodules/externals/build/support/CMakeLists.txt b/submodules/externals/build/support/CMakeLists.txt index 3da596552..2592558d3 100644 --- a/submodules/externals/build/support/CMakeLists.txt +++ b/submodules/externals/build/support/CMakeLists.txt @@ -34,6 +34,9 @@ set(SUPPORT_SOURCES ) add_library(support STATIC ${SUPPORT_SOURCES}) +if(CMAKE_C_COMPILER_ID STREQUAL "GNU") + target_compile_options(support PRIVATE "-std=c99") +endif() install(TARGETS support RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}