YAML CPP: Always ignore container overflows
@@ -22,10 +22,6 @@ if (DEPENDENCY_PHASE)
"which do not point to an object of type `_Sp_counted_base`")
endif (${DISABLE_PLUGIN_ASAN})
- # Ignore warnings about container overflows on FreeBSD.
- if (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
- set (ASAN_DISABLE_CONTAINER_OVERFLOW_CHECK TEST_ENVIRONMENT "ASAN_OPTIONS=detect_container_overflow=0")
- endif (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
endif (DEPENDENCY_PHASE)
add_plugin (yamlcpp
@@ -36,6 +32,7 @@ add_plugin (yamlcpp
TEST_README
INSTALL_TEST_DATA
TEST_REQUIRED_PLUGINS base64 directoryvalue
+ TEST_ENVIRONMENT "ASAN_OPTIONS=detect_container_overflow=0"
SOURCES yamlcpp.hpp
yamlcpp.cpp
read.hpp
