From 100ecedccdfaf6a3ad21e9cfeabda6e56ec1d919 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Fri, 30 Apr 2010 11:27:27 +0000 Subject: [PATCH] Don't try to add phonon include directories if phonon wasn't actually found. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33729a0fb..adf5ec8f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})