From: Matthew Barr Date: Thu, 23 Mar 2017 01:19:35 +0000 (+1100) Subject: Don't fail if sqlite is not present. X-Git-Tag: v4.5.0^2~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7533e3341e20aa4746b058207909a84cba294f8a;p=thirdparty%2Fvectorscan.git Don't fail if sqlite is not present. --- diff --git a/cmake/sqlite3.cmake b/cmake/sqlite3.cmake index c07f1161..cbe17c6d 100644 --- a/cmake/sqlite3.cmake +++ b/cmake/sqlite3.cmake @@ -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() diff --git a/tools/hsbench/CMakeLists.txt b/tools/hsbench/CMakeLists.txt index 25a833d0..3b9a73f7 100644 --- a/tools/hsbench/CMakeLists.txt +++ b/tools/hsbench/CMakeLists.txt @@ -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})