Commit 3a49359b authored by Mateusz Loskot's avatar Mateusz Loskot

Request CATCH to disable all the C++11 features.

Fixes compilation with GCC 5.x for which CATCH detects and
enables features like std::nullptr.
CATCH detection is enabled if CMake option SOCI_CXX_C11=ON
parent 24cbf26c
......@@ -11,6 +11,11 @@
colormsg(_HIBLUE_ "Configuring SOCI tests:")
# Request CATCH to disable all the C++11 features
if (NOT SOCI_CXX_C11)
add_definitions(-DCATCH_CONFIG_NO_CPP11)
endif()
include_directories(
${SOCI_SOURCE_DIR}/include/private
${CMAKE_CURRENT_SOURCE_DIR})
......
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