Skip to content

Commit 8c1ee0c

Browse files
committedApr 20, 2015
Add ORACLE_INCLUDEDIR, ORACLE_LIBDIR CMake variables
1 parent 3581e57 commit 8c1ee0c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎CMakeLists.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ SET (WITH_QSPATIALITE FALSE CACHE BOOL "Determines whether QSPATIALITE sql drive
8686
SET (WITH_ORACLE FALSE CACHE BOOL "Determines whether Oracle support should be built")
8787
IF(WITH_ORACLE)
8888
SET(HAVE_ORACLE TRUE)
89+
SET(ORACLE_INCLUDEDIR "" CACHE STRING "Path to OCI headers")
90+
SET(ORACLE_LIBDIR "" CACHE STRING "Path to OCI libraries")
8991
ENDIF(WITH_ORACLE)
9092

9193

‎src/providers/oracle/ocispatial/cmake/FindOCI.cmake‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212

1313
FIND_PATH(OCI_INCLUDE_DIR oci.h
1414
PATHS
15+
${ORACLE_INCLUDEDIR}
1516
/usr/include/oracle/11.2/client64
1617
$ENV{OSGEO4W_ROOT}/include
1718
$ENV{ORACLE_HOME}/rdbms/public
1819
)
1920

2021
FIND_LIBRARY(OCI_LIBRARY clntsh oci
2122
PATHS
23+
${ORACLE_LIBDIR}
2224
/usr/lib/oracle/11.2/client64/lib/
2325
$ENV{OSGEO4W_ROOT}/lib
2426
$ENV{ORACLE_HOME}/lib

0 commit comments

Comments
 (0)
Please sign in to comment.