Commit bb30765a authored by Luigi Toscano's avatar Luigi Toscano
Browse files

Fix for the fix: properly look for libmusicbrainz5



The newer libmusicbrainz5 (git snapshot) installs a separate C++ library
(libmusicbrainz5cc), so first look for it and then fallback to the
normal libmusicbrainz5.

Reviewed-by: Andreas Sturmlechner's avatarAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
parent f787e70f
......@@ -16,7 +16,10 @@ endif()
find_path(MUSICBRAINZ5_INCLUDE_DIR musicbrainz5/Disc.h)
find_library(MUSICBRAINZ5_LIBRARIES NAMES musicbrainz5)
find_library(MUSICBRAINZ5_LIBRARIES NAMES musicbrainz5cc)
if (NOT MUSICBRAINZ5_LIBRARIES)
find_library(MUSICBRAINZ5_LIBRARIES NAMES musicbrainz5)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MusicBrainz5 DEFAULT_MSG MUSICBRAINZ5_INCLUDE_DIR MUSICBRAINZ5_LIBRARIES)
......
......@@ -58,7 +58,7 @@ target_link_libraries(KF5Cddb
Qt5::Network)
if(MUSICBRAINZ5_FOUND)
target_link_libraries(KF5Cddb PRIVATE musicbrainz5cc)
target_link_libraries(KF5Cddb PRIVATE musicbrainz)
endif()
ki18n_wrap_ui(ui_sources cdinfodialog.ui cdinfoencodingwidget.ui)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment