Skip to content

Commit

Permalink
put spatialindex header directory in front of GEOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 9, 2011
1 parent eda69e6 commit b9d26e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,12 @@ INCLUDE_DIRECTORIES(
${GDAL_INCLUDE_DIR}
)

# put SPATIALINDEX include dir in front
# (otherwise GEOS's spatialite.h might be found first)
IF (NOT WITH_INTERNAL_SPATIALINDEX)
INCLUDE_DIRECTORIES(${SPATIALINDEX_INCLUDE_DIR})
INCLUDE_DIRECTORIES(BEFORE ${SPATIALINDEX_INCLUDE_DIR})
ELSE (NOT WITH_INTERNAL_SPATIALINDEX)
INCLUDE_DIRECTORIES(spatialindex/include)
INCLUDE_DIRECTORIES(BEFORE spatialindex/include)
ENDIF (NOT WITH_INTERNAL_SPATIALINDEX)

IF (NOT WITH_INTERNAL_SPATIALITE)
Expand Down

0 comments on commit b9d26e4

Please sign in to comment.