Skip to content
Snippets Groups Projects
Commit 9ac3026e authored by Steven Murray's avatar Steven Murray
Browse files

Removed redundant test for gcc>=5.1

parent 7813b419
Branches
Tags
No related merge requests found
......@@ -19,17 +19,6 @@ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wshadow")
find_package (sqlite REQUIRED)
# OCCI support is on by default
set (OCCI_SUPPORT ON)
# Switch OCCI support off if using gcc 5.1 or higher
if (CMAKE_COMPILER_IS_GNUCC)
if (GCC_VERSION VERSION_GREATER 5.0)
message(STATUS "Detected gcc >= 5.1 - Switching off OCCI support")
set (OCCI_SUPPORT OFF)
endif (GCC_VERSION VERSION_GREATER 5.0)
endif (CMAKE_COMPILER_IS_GNUCC)
if(OCCI_SUPPORT)
find_package (oracle-instantclient REQUIRED)
include_directories (${ORACLE-INSTANTCLIENT_INCLUDE_DIRS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment