From 43b9941dc8d61ef54bf2b3d3b4d5adb9828fd803 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 2 Aug 2019 21:12:18 +0200 Subject: [PATCH] Make sqlite3 fts5 check fatal --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e0cdac0f..b6fbbc795 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -435,6 +435,6 @@ elseif(NOT HAVE_GSTREAMER) message(WARNING "GStreamer is the only engine that is fully implemented. Using other engines is possible but not recommended.") endif() -if(NOT SQLITE3_FTS5) - message(WARNING "sqlite3 must be enabled with FTS5. See: https://www.sqlite.org/fts5.html") +if(NOT SQLITE3_FTS5 AND NOT CMAKE_CROSSCOMPILING) + message(FATAL_ERROR "sqlite3 must be enabled with FTS5. See: https://www.sqlite.org/fts5.html") endif()