Don't try to add phonon include directories if phonon wasn't actually found.

This commit is contained in:
David Sansome 2010-04-30 11:27:27 +00:00
parent 148bd538f7
commit 100ecedccd
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,12 @@ 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...
if (NOT ${QT_PHONON_INCLUDE_DIR})
set (QT_USE_PHONON 0)
endif (NOT ${QT_PHONON_INCLUDE_DIR})
include(${QT_USE_FILE})
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${TAGLIB_INCLUDE_DIRS})