Commit 9e062c9e authored by Steven Murray's avatar Steven Murray
Browse files

Added ORACLE-INSTANTCLIENT_RPATH to Findoracle-instantclient.cmake

parent 6215cb57
......@@ -21,6 +21,9 @@
set(ORACLE-INSTANTCLIENT_VERSION 12.2)
set(ORACLE-INSTANTCLIENT_RPATH /usr/lib/oracle/${ORACLE-INSTANTCLIENT_VERSION}/client64/lib)
message(STATUS "ORACLE-INSTANTCLIENT_RPATH=${ORACLE-INSTANTCLIENT_RPATH}")
find_path(ORACLE-INSTANTCLIENT_INCLUDE_DIRS
occi.h
PATHS /usr/include/oracle/${ORACLE-INSTANTCLIENT_VERSION}/client64
......@@ -28,12 +31,12 @@ find_path(ORACLE-INSTANTCLIENT_INCLUDE_DIRS
find_library(ORACLE-INSTANTCLIENT_CLNTSH_LIBRARY
NAME clntsh
PATHS /usr/lib/oracle/${ORACLE-INSTANTCLIENT_VERSION}/client64/lib
PATHS ${ORACLE-INSTANTCLIENT_RPATH}
NO_DEFAULT_PATH)
find_library(ORACLE-INSTANTCLIENT_OCCI_LIBRARY
NAME occi
PATHS /usr/lib/oracle/${ORACLE-INSTANTCLIENT_VERSION}/client64/lib
PATHS ${ORACLE-INSTANTCLIENT_RPATH}
NO_DEFAULT_PATH)
set(ORACLE-INSTANTCLIENT_LIBRARIES
......@@ -46,4 +49,5 @@ message(STATUS "ORACLE-INSTANTCLIENT_LIBRARIES=${ORACLE-INSTANTCLIENT_LIBRARIES}
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(oracle-instantclient DEFAULT_MSG
ORACLE-INSTANTCLIENT_INCLUDE_DIRS
ORACLE-INSTANTCLIENT_LIBRARIES)
ORACLE-INSTANTCLIENT_LIBRARIES
ORACLE-INSTANTCLIENT_RPATH)
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