Fix for broken build on cygwin using gcc - "error '[fileno, strdup, fdopen]' are not in scope" (#374)

This commit is contained in:
SirLoxley
2016-05-12 06:00:34 +02:00
committed by Jesse Beder
parent 7d2873ce9f
commit f35f4a19fa

View File

@@ -10,7 +10,13 @@ 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 -std=c++11") set(yaml_test_flags "-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare")
if(CMAKE_COMPILER_IS_GNUCXX)
set(yaml_test_flags "${yaml_test_flags} -std=gnu++11")
else()
set(yaml_test_flags "${yaml_test_flags} -std=c++11")
endif()
endif() endif()
file(GLOB test_headers [a-z_]*.h) file(GLOB test_headers [a-z_]*.h)