Skip to content
Snippets Groups Projects
Commit b27b576a authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

WRG: syntax correction to avoid warning

parent 754d4be3
No related branches found
No related tags found
1 merge request!86Solve linking problem due to ABI change
......@@ -62,13 +62,13 @@ function(patch_cmake_files)
#patch for ABI compatibility
if(EXISTS "${PATCH_STAGE_DIR}/UseOTB.cmake")
file(APPEND "${PATCH_STAGE_DIR}/UseOTB.cmake"
"\n# 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()" )
file(APPEND "${PATCH_STAGE_DIR}/UseOTB.cmake"
"\n\n# ABI compatibility \
\nif ( CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\") \
\n if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0 ) \
\n add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) \
\n endif() \
\nendif()" )
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment