Don't fail if sqlite is not present.

This commit is contained in:
Matthew Barr 2017-03-23 12:19:35 +11:00
parent 1ef87c43ee
commit 7533e3341e
2 changed files with 5 additions and 1 deletions

View 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()

View 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})