Skip to content

Commit

Permalink
remove FindSQLite3 module to use the one included in CMake
Browse files Browse the repository at this point in the history
This is required to work with
mixxxdj/vcpkg#27
  • Loading branch information
Be-ing committed Nov 22, 2021
1 parent 3e2c90d commit a3962c4
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 @@ -1848,7 +1848,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 @@ -1861,10 +1861,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 a3962c4

Please sign in to comment.