From 58ea0bcbb0579739281e7ce8f18cede06a8c96b7 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 27 Nov 2018 19:33:30 +0100 Subject: [PATCH] Turn Deezer OFF by default if dependencies arent found --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index daa80d329..2da1a92bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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