2021-07-13 08:19:09 +00:00
|
|
|
option(ENABLE_SQLITE "Enable sqlite" ${ENABLE_LIBRARIES})
|
2021-07-08 13:27:30 +00:00
|
|
|
|
|
|
|
if (NOT ENABLE_SQLITE)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/sqlite-amalgamation/sqlite3.c")
|
2021-10-17 23:29:04 +00:00
|
|
|
message (WARNING "submodule contrib/sqlite3-amalgamation is missing. to fix try run: \n git submodule update --init")
|
2021-07-08 13:27:30 +00:00
|
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't find internal sqlite library")
|
|
|
|
set (USE_SQLITE 0)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set (USE_SQLITE 1)
|
|
|
|
set (SQLITE_LIBRARY sqlite)
|
|
|
|
message (STATUS "Using sqlite=${USE_SQLITE}")
|