Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Jul 27, 2020
2 parents 661e0c4 + 05d4f2a commit 759b3fc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,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.")
Expand Down

0 comments on commit 759b3fc

Please sign in to comment.