Skip to content

Commit

Permalink
Devendor FindSQLite3.cmake
Browse files Browse the repository at this point in the history
It is part of CMake since 3.13 and defines SQLite::SQLite3, without 3
  • Loading branch information
daschuer committed Apr 21, 2022
1 parent fdbcc39 commit c04ea33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 90 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,7 @@ find_package(SQLite3)
if(NOT SQLite3_FOUND)
set(LOCALECOMPARE_DEFAULT OFF)
else()
is_static_library(SQLite3_IS_STATIC SQLite3::SQLite3)
is_static_library(SQLite3_IS_STATIC SQLite::SQLite3)
if(SQLite3_IS_STATIC OR NOT APPLE)
set(LOCALECOMPARE_DEFAULT ON)
else()
Expand All @@ -1894,10 +1894,10 @@ if(LOCALECOMPARE)
message(FATAL_ERROR "Locale Aware Compare for SQLite requires libsqlite and its development headers.")
endif()
target_compile_definitions(mixxx-lib PUBLIC __SQLITE3__)
target_link_libraries(mixxx-lib PRIVATE SQLite3::SQLite3)
target_link_libraries(mixxx-lib PRIVATE SQLite::SQLite3)
elseif(SQLite3_IS_STATIC)
# in the static case we need to link SQLite3 uncoditionally
target_link_libraries(mixxx-lib PRIVATE SQLite3::SQLite3)
target_link_libraries(mixxx-lib PRIVATE SQLite::SQLite3)
endif()

# Denon Engine Prime library export support (using libdjinterop)
Expand Down
87 changes: 0 additions & 87 deletions cmake/modules/FindSQLite3.cmake

This file was deleted.

0 comments on commit c04ea33

Please sign in to comment.