]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Don't fail if sqlite is not present.
authorMatthew Barr <matthew.barr@intel.com>
Thu, 23 Mar 2017 01:19:35 +0000 (12:19 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 05:18:38 +0000 (15:18 +1000)
cmake/sqlite3.cmake
tools/hsbench/CMakeLists.txt

index c07f1161ed53864fc70e71fb52f1a08ce98504a7..cbe17c6d44d95cb62050c863e5d877dc0a81edf9 100644 (file)
@@ -22,7 +22,7 @@ if (NOT SQLITE3_FOUND)
         set(SQLITE3_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/sqlite3")
         set(SQLITE3_LDFLAGS sqlite3_static)
     else()
-        message(FATAL_ERROR "  no sqlite3 in source tree")
+        message(STATUS "  no sqlite3 in source tree")
     endif()
 endif()
 
index 25a833d08e8a77af668d3a582b2b07dd03a5fdf2..3b9a73f735d8d84cebf6949651e1a249c8d93c37 100644 (file)
@@ -1,4 +1,8 @@
 include (${CMAKE_MODULE_PATH}/sqlite3.cmake)
+if (NOT SQLITE3_FOUND)
+    message(STATUS "sqlite3 not found, not building hsbench")
+    return()
+endif()
 
 if (NOT XCODE)
     include_directories(SYSTEM ${SQLITE3_INCLUDE_DIRS})