Skip to content

Commit b9d26e4

Browse files
committedNov 9, 2011
put spatialindex header directory in front of GEOS
1 parent eda69e6 commit b9d26e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/core/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,12 @@ INCLUDE_DIRECTORIES(
404404
${GDAL_INCLUDE_DIR}
405405
)
406406

407+
# put SPATIALINDEX include dir in front
408+
# (otherwise GEOS's spatialite.h might be found first)
407409
IF (NOT WITH_INTERNAL_SPATIALINDEX)
408-
INCLUDE_DIRECTORIES(${SPATIALINDEX_INCLUDE_DIR})
410+
INCLUDE_DIRECTORIES(BEFORE ${SPATIALINDEX_INCLUDE_DIR})
409411
ELSE (NOT WITH_INTERNAL_SPATIALINDEX)
410-
INCLUDE_DIRECTORIES(spatialindex/include)
412+
INCLUDE_DIRECTORIES(BEFORE spatialindex/include)
411413
ENDIF (NOT WITH_INTERNAL_SPATIALINDEX)
412414

413415
IF (NOT WITH_INTERNAL_SPATIALITE)

0 commit comments

Comments
 (0)
Please sign in to comment.