Commit 5b7bdb56 authored by Antoine Regimbeau's avatar Antoine Regimbeau

ENH: add instruction to not use abi cxx11 for exernal project

parent 3f7b6d40
......@@ -23,6 +23,13 @@
# included directly, but rather through the OTB_USE_FILE setting
# obtained from OTBConfig.cmake.
# ABI compatibility
if ( CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0 )
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
endif()
endif()
# Add compiler flags needed to use OTB.
set(CMAKE_C_FLAGS "${OTB_REQUIRED_C_FLAGS} ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${OTB_REQUIRED_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
......
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