From 009b6a8e9a70db61ad4b9d1021dd2ee4f9cdb650 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Wed, 9 Jun 2010 14:01:51 -0300 Subject: Fix cmake detection of phonon on MacOSX. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Luciano Wolf Renato Araújo --- PySide/phonon/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'PySide') diff --git a/PySide/phonon/CMakeLists.txt b/PySide/phonon/CMakeLists.txt index 01b1f6ab5..73920638d 100644 --- a/PySide/phonon/CMakeLists.txt +++ b/PySide/phonon/CMakeLists.txt @@ -1,5 +1,10 @@ project(phonon) +# workaround for a cmake bug under MacOSX, it finds phonon but not the include path +if (NOT QT_PHONON_INCLUDE_DIR AND CMAKE_HOST_APPLE) + set(QT_PHONON_INCLUDE_DIR "${QT_LIBRARY_DIR}/phonon.framework/Headers") +endif() + set(phonon_SRC ${CMAKE_CURRENT_BINARY_DIR}/PySide/phonon/phonon_abstractaudiooutput_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/phonon/phonon_abstractmediastream_wrapper.cpp -- cgit v1.2.3