Skip to content
Permalink
Browse files

Add ORACLE_INCLUDEDIR, ORACLE_LIBDIR CMake variables

  • Loading branch information
manisandro committed Apr 20, 2015
1 parent 3581e57 commit 8c1ee0c691456bba159a9fa57f8f53258b9df0bb
Showing with 4 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
  2. +2 −0 src/providers/oracle/ocispatial/cmake/FindOCI.cmake
@@ -86,6 +86,8 @@ SET (WITH_QSPATIALITE FALSE CACHE BOOL "Determines whether QSPATIALITE sql drive
SET (WITH_ORACLE FALSE CACHE BOOL "Determines whether Oracle support should be built")
IF(WITH_ORACLE)
SET(HAVE_ORACLE TRUE)
SET(ORACLE_INCLUDEDIR "" CACHE STRING "Path to OCI headers")
SET(ORACLE_LIBDIR "" CACHE STRING "Path to OCI libraries")
ENDIF(WITH_ORACLE)


@@ -12,13 +12,15 @@

FIND_PATH(OCI_INCLUDE_DIR oci.h
PATHS
${ORACLE_INCLUDEDIR}
/usr/include/oracle/11.2/client64
$ENV{OSGEO4W_ROOT}/include
$ENV{ORACLE_HOME}/rdbms/public
)

FIND_LIBRARY(OCI_LIBRARY clntsh oci
PATHS
${ORACLE_LIBDIR}
/usr/lib/oracle/11.2/client64/lib/
$ENV{OSGEO4W_ROOT}/lib
$ENV{ORACLE_HOME}/lib

0 comments on commit 8c1ee0c

Please sign in to comment.
You can’t perform that action at this time.