Turn Deezer OFF by default if dependencies arent found

This commit is contained in:
Jonas Kvinge
2018-11-27 19:33:30 +01:00
parent 1c0bbe5d33
commit 58ea0bcbb0

View File

@@ -356,7 +356,12 @@ optional_component(SPARKLE ON "Sparkle integration"
)
optional_component(STREAM_TIDAL ON "Streaming: Tidal support")
optional_component(STREAM_DEEZER ON "Streaming: Deezer support")
if (LIBDZMEDIA_FOUND OR LIBDEEZER_FOUND)
optional_component(STREAM_DEEZER ON "Streaming: Deezer support")
else()
optional_component(STREAM_DEEZER OFF "Streaming: Deezer support")
endif()
optional_component(DZMEDIA ON "DZMedia"
DEPENDS "libdzmedia" LIBDZMEDIA_FOUND