Commit 3f33f337 authored by Ryan Schmidt's avatar Ryan Schmidt Committed by Jesse Beder
Browse files

Only use -Wno-c99-extensions for clang

parent 5a519a4c
...@@ -10,7 +10,11 @@ endif() ...@@ -10,7 +10,11 @@ endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
CMAKE_CXX_COMPILER_ID MATCHES "Clang") CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(yaml_test_flags "-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare") set(yaml_test_flags "-Wno-variadic-macros -Wno-sign-compare")
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(yaml_test_flags "${yaml_test_flags} -Wno-c99-extensions")
endif()
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)
set(yaml_test_flags "${yaml_test_flags} -std=gnu++11") set(yaml_test_flags "${yaml_test_flags} -std=gnu++11")
......
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