Commit 5c11d0f0 authored by Pino Toscano's avatar Pino Toscano

cmake: pass -std=c99 for ffmpeg also when using clang

parent 0d21d05b
...@@ -130,10 +130,10 @@ if(K3B_BUILD_FFMPEG_DECODER_PLUGIN) ...@@ -130,10 +130,10 @@ if(K3B_BUILD_FFMPEG_DECODER_PLUGIN)
include(CMakePushCheckState) include(CMakePushCheckState)
cmake_push_check_state() cmake_push_check_state()
if(CMAKE_COMPILER_IS_GNUCC) if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
# FindKDE4Internal.cmake screws things up # FindKDE4Internal.cmake screws things up
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} -std=c99) set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} -std=c99)
endif(CMAKE_COMPILER_IS_GNUCC) endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
if(FFMPEG_INCLUDE_DIR_OLD_STYLE) if(FFMPEG_INCLUDE_DIR_OLD_STYLE)
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${FFMPEG_INCLUDE_DIR_OLD_STYLE}) set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${FFMPEG_INCLUDE_DIR_OLD_STYLE})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment