aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-07 13:44:35 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-11-07 13:48:09 +0100
commitd2a2b3e4e99b3f661fc6167db332b3b2d9e50591 (patch)
tree6b78218b0b5012a9172f282b9687ba99b4cfcf85 /CMakeLists.txt
parent34dc695402ba5d10248ea47bec3ab88ed950eccb (diff)
downloadPROJ-d2a2b3e4e99b3f661fc6167db332b3b2d9e50591.tar.gz
PROJ-d2a2b3e4e99b3f661fc6167db332b3b2d9e50591.zip
Build: require SQLite 3.11 (refs #1718)
PROJ can build and run against older version (3.7 for example), but it has been found that performance is horrible. With 3.11 (Ubuntu 16.04), it is fine, so sets this as the minimum version.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63f516a3..2761e542 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -127,6 +127,12 @@ if(NOT SQLITE3_FOUND)
message(SEND_ERROR "sqlite3 dependency not found!")
endif()
+# Would build and run with older versons, but with horrible performance
+# See https://github.com/OSGeo/PROJ/issues/1718
+IF("${SQLITE3_VERSION}" VERSION_LESS "3.11")
+ message(SEND_ERROR "sqlite3 >= 3.11 required!")
+ENDIF()
+
################################################################################
# threading configuration
################################################################################