Commit b27b576a authored by Antoine Regimbeau's avatar Antoine Regimbeau

WRG: syntax correction to avoid warning

parent 754d4be3
......@@ -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()
......
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