Skip to content

Commit 272d821

Browse files
committed
Fix SPATIALINDEX_INCLUDE_DIR location.
SpatialIndex installs buried headers under {prefix}/include/spatialindex and users are supposed to include <spatialindex/spatialindex.h> thus the include directory must be set as {prefix}/include.
1 parent 4d1a5c6 commit 272d821

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

benchmark_spatialindex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#include <cstdint>
1+
//#include <cstdint>
22
#include <cstdlib>
3-
#include <spatialindex/SpatialIndex.h>
3+
#include <SpatialIndex/SpatialIndex.h>
44
using namespace std;
55
using namespace SpatialIndex;
66

cmake/modules/FindSpatialIndex.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if(WIN32)
3737
endif()
3838

3939
find_path(SPATIALINDEX_INCLUDE_DIR
40-
NAMES MVRTree.h
40+
NAMES spatialindex/MVRTree.h
4141
HINTS
4242
${OSGEO4W_ROOT_DIR}/include
4343
PATHS

0 commit comments

Comments
 (0)