Explicity enable/disable liblastfm support.

Fixes issue #1138
This commit is contained in:
John Maguire 2010-12-19 13:54:30 +00:00
parent a6445f2fe7
commit 027811767e
1 changed files with 3 additions and 2 deletions

View File

@ -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)