Fix compile without built-in qsqlite
This commit is contained in:
@@ -853,6 +853,7 @@ target_link_libraries(strawberry_lib
|
||||
${QTSINGLEAPPLICATION_LIBRARIES}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
${SQLITE_LIBRARIES}
|
||||
${QSQLITE_LIBRARIES}
|
||||
z
|
||||
Qocoa
|
||||
)
|
||||
@@ -891,10 +892,6 @@ if(HAVE_LIBMTP)
|
||||
target_link_libraries(strawberry_lib ${LIBMTP_LIBRARIES})
|
||||
endif(HAVE_LIBMTP)
|
||||
|
||||
#if(HAVE_LIBINDICATE)
|
||||
# target_link_libraries(strawberry_lib ${INDICATEQT_LIBRARIES})
|
||||
#endif(HAVE_LIBINDICATE)
|
||||
|
||||
if(HAVE_LIBPULSE)
|
||||
target_link_libraries(strawberry_lib ${LIBPULSE_LIBRARIES})
|
||||
endif()
|
||||
@@ -918,8 +915,6 @@ else (APPLE)
|
||||
target_link_libraries(strawberry_lib ${QXT_LIBRARIES})
|
||||
endif (APPLE)
|
||||
|
||||
target_link_libraries(strawberry_lib qsqlite)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(strawberry_lib
|
||||
${ZLIB_LIBRARIES}
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#cmakedefine TAGLIB_HAS_OPUS
|
||||
#cmakedefine USE_INSTALL_PREFIX
|
||||
#cmakedefine USE_SYSTEM_SHA2
|
||||
#cmakedefine USE_SYSTEM_QSQLITE
|
||||
|
||||
#cmakedefine HAVE_GSTREAMER
|
||||
#cmakedefine HAVE_VLC
|
||||
|
||||
@@ -82,8 +82,10 @@
|
||||
#endif
|
||||
|
||||
// Load sqlite plugin on windows and mac.
|
||||
#ifndef USE_SYSTEM_QSQLITE
|
||||
#include <QtPlugin>
|
||||
Q_IMPORT_PLUGIN(QSQLiteDriverPlugin)
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user