From 7533e3341e20aa4746b058207909a84cba294f8a Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Thu, 23 Mar 2017 12:19:35 +1100 Subject: [PATCH] Don't fail if sqlite is not present. --- cmake/sqlite3.cmake | 2 +- tools/hsbench/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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})