mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fix for broken build on cygwin using gcc - "error '[fileno, strdup, fdopen]' are not in scope" (#374)
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user