diff --git a/CMakeLists.txt b/CMakeLists.txt index f1f30da4f..4d8225255 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ else(WIN32) pkg_check_modules(LIBXINE libxine) endif(WIN32) -find_library(LASTFM_LIBRARY_DIRS lastfm) +find_library(LASTFM_LIBRARIES lastfm) find_path(LASTFM_INCLUDE_DIRS lastfm/ws.h) find_library(PROJECTM_LIBRARIES projectM) @@ -72,7 +72,6 @@ endif(${CMAKE_BUILD_TYPE} MATCHES "Release") add_definitions(${QT_DEFINITIONS}) link_directories(${TAGLIB_LIBRARY_DIRS}) link_directories(${GSTREAMER_LIBRARY_DIRS}) -link_directories(${LASTFM_LIBRARY_DIRS}) # Don't try to use Phonon if its include directory couldn't be found. # For some reason this works differently to the rest of Qt... diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 31872d9ed..7a8383d53 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -69,13 +69,13 @@ target_link_libraries(clementine_lib clementine_translations qtsingleapplication qtiocompressor - lastfm chardet ${GOBJECT_LIBRARIES} ${GLIB_LIBRARIES} ${TAGLIB_LIBRARIES} ${QT_LIBRARIES} ${ENGINE_LIBRARIES} + ${LASTFM_LIBRARIES} ) if (APPLE)