From 027811767e449293782f93fd3e88e43156242715 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Sun, 19 Dec 2010 13:54:30 +0000 Subject: [PATCH] Explicity enable/disable liblastfm support. Fixes issue #1138 --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84971bb37..e82821f16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,9 +56,9 @@ endif (WIN32) find_library(LASTFM_LIBRARIES lastfm) find_path(LASTFM_INCLUDE_DIRS lastfm/ws.h) -if (LASTFM_LIBRARIES AND LASTFM_INCLUDE_DIRS) +if (ENABLE_LIBLASTFM AND LASTFM_LIBRARIES AND LASTFM_INCLUDE_DIRS) set(HAVE_LIBLASTFM ON) -endif (LASTFM_LIBRARIES AND LASTFM_INCLUDE_DIRS) +endif (ENABLE_LIBLASTFM AND LASTFM_LIBRARIES AND LASTFM_INCLUDE_DIRS) if (APPLE) find_library(GROWL Growl) @@ -138,6 +138,7 @@ option(ENABLE_GIO "GIO backend" ON) option(ENABLE_VISUALISATIONS "Use libprojectm visualisations" ON) option(BUNDLE_PROJECTM_PRESETS "Install Clementine's own copies of libprojectm presets - disable this if you want to use a system package instead" ON) option(ENABLE_SOUNDMENU "Add Clementine to the Gnome sound menu" ON) +option(ENABLE_LIBLASTFM "Use liblastfm for fetching song info, scrobbling and radio streams" ON) if(NOT APPLE AND NOT WIN32) option(ENABLE_WIIMOTEDEV "Enable Wii remote support in Clementine" ON)