mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
3rdparty(webp): enable -std=c99
This commit is contained in:
parent
d58f9ae824
commit
f1b6228d4f
5
3rdparty/libwebp/CMakeLists.txt
vendored
5
3rdparty/libwebp/CMakeLists.txt
vendored
@ -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…
Reference in New Issue
Block a user