From 343c1afce56db4274338fe50c47d7adaef67f45f Mon Sep 17 00:00:00 2001
From: Amy Stamile <74275278+amystamile-usgs@users.noreply.github.com>
Date: Tue, 4 Jun 2024 13:43:40 -0700
Subject: [PATCH] fixes build issues (#486)

---
 CMakeLists.txt  | 6 ------
 README.md       | 2 +-
 environment.yml | 1 +
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02cc836..bc24e9b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,12 +95,6 @@ else()
     message(SEND_ERROR "sqlite3 dependency not found!")
   endif()
 
-  # Would build and run with older versions, 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()
-
   include(ProjUtilities)
   include(Ccache)
   ################################################################################
diff --git a/README.md b/README.md
index eb1369e..6a3444e 100644
--- a/README.md
+++ b/README.md
@@ -122,7 +122,7 @@ USGSCSM uses a standard cmake build system. To compile the library and
 tests use the following commands:
 
 1. `mkdir build && cd build`
-2. `cmake .. && cmake --build .`
+2. `cmake -DUSGSCSM_EXTERNAL_DEPS=OFF -DUSGSCSM_BUILD_DOCS=OFF .. && cmake --build .`
 
 If you are using external dependencies via Conda or system level installations
 add the `-DUSGSCSM_EXTERNAL_DEPS=ON` flag to the cmake command.
diff --git a/environment.yml b/environment.yml
index 159b2f1..171a0e9 100644
--- a/environment.yml
+++ b/environment.yml
@@ -10,3 +10,4 @@ dependencies:
   - eigen
   - nlohmann_json
   - proj
+  - sqlite>=3.11
-- 
GitLab