Skip to content

Commit 6c4cd82

Browse files
author
esseffe
committed
spatialite data provider - fixup
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10529 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c6c1291 commit 6c4cd82

2 files changed

Lines changed: 85 additions & 51 deletions

File tree

‎src/core/CMakeLists.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ IF (WITH_INTERNAL_SPATIALITE)
117117
ADD_DEFINITIONS(-DDLL_EXPORT)
118118
ENDIF (WIN32)
119119

120+
#
121+
# sqlite3 requires some extraflags to be defined
122+
# in order to support:
123+
# - huge database > 2 GB
124+
# - RTree Spatial Index
125+
#
126+
ADD_DEFINITIONS(-D_LARGE_FILE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1)
127+
ADD_DEFINITIONS(-DSQLITE_ENABLE_RTREE=1)
128+
120129
SET(QGIS_CORE_SRCS
121130
${QGIS_CORE_SRCS}
122131
spatialite/sqlite3.c

0 commit comments

Comments
 (0)