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

File tree

2 files changed

+85
-51
lines changed

2 files changed

+85
-51
lines changed

src/core/CMakeLists.txt

+9
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)