Skip to content

Commit c39d631

Browse files
committed
Provide feedback on which musicbrainz/coverart modules were found.
The pkg_check_modules function does this automatically, but the pkg_search_module doesn't. It requires extra logic to print the version found.
1 parent 9279120 commit c39d631

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mythplugins/cmake/MythPluginsFindPackages.cmake

+6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ if(TARGET PkgConfig::CDIO)
2929
pkg_check_modules(CDIO_CDDA libcdio_cdda IMPORTED_TARGET)
3030
pkg_check_modules(CDIO_PARANOIA libcdio_paranoia IMPORTED_TARGET)
3131
pkg_search_module(MUSICBRAINZ libmusicbrainz5cc libmusicbrainz5 IMPORTED_TARGET)
32+
if(MUSICBRAINZ_FOUND)
33+
message(STATUS " Found ${MUSICBRAINZ_MODULE_NAME}, version ${MUSICBRAINZ_VERSION}")
34+
endif()
3235
pkg_search_module(COVERART libcoverartcc libcoverart IMPORTED_TARGET)
36+
if(COVERART_FOUND)
37+
message(STATUS " Found ${COVERART_MODULE_NAME}, version ${COVERART_VERSION}")
38+
endif()
3339
pkg_check_modules(DISCID libdiscid IMPORTED_TARGET)
3440
endif()
3541

0 commit comments

Comments
 (0)