3rdparty(webp): enable -std=c99

pull/14707/head
Alexander Alekhin 6 years ago
parent d58f9ae824
commit f1b6228d4f
  1. 5
      3rdparty/libwebp/CMakeLists.txt

@ -21,6 +21,11 @@ if(ANDROID AND ARMEABI_V7A AND NOT NEON)
endforeach()
endif()
# FIX for quant.h - requires C99 for() loops
ocv_check_flag_support(C "-std=c99" _varname "${CMAKE_C_FLAGS}")
if(${_varname})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
endif()
# ----------------------------------------------------------------------------------

Loading…
Cancel
Save