mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Make not finding built-in SQLite3 a fatal error
Use FATAL_ERROR if SQLite3 is not found at all (usually means --recurse-submodules wasn't used). See #1273.
This commit is contained in:
committed by
Vadim Zeitlin
parent
9347d233a2
commit
ce348126e7
@@ -50,7 +50,11 @@ if (NOT TARGET SQLite::SQLite3)
|
||||
# available, and if we're allowed to use it.
|
||||
if (NOT "${SOCI_SQLITE3_BUILTIN}" STREQUAL "OFF")
|
||||
if (NOT EXISTS ${SOCI_SQLITE3_SOURCE_FILE})
|
||||
message(WARNING "SQLite3 not found and built-in version not available, have you cloned SOCI repository with --recurse-submodules?")
|
||||
message(
|
||||
FATAL_ERROR
|
||||
"SQLite3 not found and built-in version not available. Please ensure "
|
||||
"that you have cloned the SOCI repository with --recurse-submodules."
|
||||
)
|
||||
else()
|
||||
set(SOCI_SQLITE3_USE_BUILTIN ON)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user