WSL/SLF GitLab Repository

Commit 1d400601 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

When compiling with gcc>5 AND linking with OCCI, there is a special option to...

When compiling with gcc>5 AND linking with OCCI, there is a special option to add otherwise the linking fails...
parent f7bf899a
......@@ -17,6 +17,12 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
SET(EXTRA "-fsanitize=address -fno-omit-frame-pointer")
ENDIF(LEAKS_CHECK)
ENDIF()
IF(GCC_VERSION VERSION_GREATER 5.0 OR GCC_VERSION VERSION_EQUAL 5.0)
OPTION(USE_OCCI "Set to ON when using Oracle's OCCI" OFF)
IF (USE_OCCI) #HACK: current OCCI does not support the short strings optimizations of gcc>=5
SET(EXTRA "-D_GLIBCXX_USE_CXX11_ABI=0 ${EXTRA}")
ENDIF(USE_OCCI)
ENDIF()
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${EXTRA}" CACHE STRING "" FORCE)
......
Supports Markdown
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