diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake index fe1323cd25844..acc85ae24732e 100644 --- a/cmake/modules/SearchInstalledSoftware.cmake +++ b/cmake/modules/SearchInstalledSoftware.cmake @@ -664,6 +664,14 @@ if(mysql) endif() #---Check for Oracle------------------------------------------------------------------- +# OCCI is compiled with libstdc++ which has a different ABI than libc++. +# So we better turn of Oracle in this situation to prevent linking errors between +# ROOT using libc++ and libOracle.so using libstdc++. +if(oracle AND libcxx) + message(WARNING "Oracle not supported when compiling with libc++!") + set(oracle OFF CACHE BOOL "" FORCE) +endif() + if(oracle) message(STATUS "Looking for Oracle") find_package(Oracle)