Add 'std=c++11' to test compiler flags

This commit is contained in:
Matt Blair 2015-04-27 18:51:58 -04:00
parent 3dc430e74a
commit dc3e416bb9

View File

@ -10,7 +10,7 @@ endif()
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR
"${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set(yaml_test_flags "-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare")
set(yaml_test_flags "-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare -std=c++11")
endif()
file(GLOB test_headers [a-z_]*.h)