From a219bb6e7f1c67e5dbbd5048135dec05c5711d50 Mon Sep 17 00:00:00 2001 From: Be Date: Tue, 21 Jul 2020 09:52:30 -0500 Subject: [PATCH] CMakeLists: disable LOCALECOMPARE on macOS by default --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f84ee7cf4b2..235a620616e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2118,7 +2118,14 @@ endif() # Locale Aware Compare for SQLite find_package(SQLite3) -cmake_dependent_option(LOCALECOMPARE "Locale Aware Compare support for SQLite" ON "SQLite3_FOUND" OFF) +# FIXME +# It is difficult to get qmake to link Qt to a custom built SQLite on macOS instead of the system SQLite, +# which results in a crash on startup when LOCALECOMPARE is enabled. +if(APPLE) + cmake_dependent_option(LOCALECOMPARE "Locale Aware Compare support for SQLite" OFF "SQLite3_FOUND" OFF) +else() + cmake_dependent_option(LOCALECOMPARE "Locale Aware Compare support for SQLite" ON "SQLite3_FOUND" OFF) +endif() if(LOCALECOMPARE) if(NOT SQLite3_FOUND) message(FATAL_ERROR "Locale Aware Compare for SQLite requires libsqlite and its development headers.")