Avoid building against QCA when we are not building spotify core code.

This commit is contained in:
John Maguire 2012-09-03 16:47:38 +02:00
parent c16e46e41a
commit daa40f6fe8
1 changed files with 7 additions and 7 deletions

View File

@ -229,18 +229,18 @@ optional_component(SPOTIFY_BLOB ON "Spotify support: non-GPL binary helper"
DEPENDS "libspotify" SPOTIFY_FOUND
)
# If we're building the spotify blob then we don't need qca2 for the core code
if(HAVE_SPOTIFY_BLOB)
set(QCA_FOUND ON)
elseif(QCA_FOUND)
set(HAVE_QCA ON)
endif()
optional_component(SPOTIFY ON "Spotify support: core code"
DEPENDS "protobuf" PROTOBUF_FOUND PROTOBUF_PROTOC_EXECUTABLE
DEPENDS "qca2" QCA_FOUND
)
# If we're building the spotify blob then we don't need qca2 for the core code
if(HAVE_SPOTIFY_BLOB)
set(QCA_FOUND ON)
elseif(QCA_FOUND AND HAVE_SPOTIFY)
set(HAVE_QCA ON)
endif()
optional_component(MOODBAR ON "Moodbar support"
DEPENDS "fftw3" FFTW3_FOUND
)