Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add ORACLE_INCLUDEDIR, ORACLE_LIBDIR CMake variables
  • Loading branch information
manisandro committed Apr 20, 2015
1 parent 3581e57 commit 8c1ee0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)


Expand Down
2 changes: 2 additions & 0 deletions src/providers/oracle/ocispatial/cmake/FindOCI.cmake
Expand Up @@ -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
Expand Down

0 comments on commit 8c1ee0c

Please sign in to comment.