Commit 420ae0cb authored by Ghislain MARY's avatar Ghislain MARY

Set correct compilation flags for clang.

parent c2f3a2c6
......@@ -74,7 +74,7 @@ include_directories(
add_definitions(-DHAVE_CONFIG_H)
if(NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-error=unknown-pragmas")
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=unknown-warning-option")
if(NOT IOS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wextra")
......
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