From kde-commits Tue Jul 20 19:36:04 2010 From: Mike Arthur Date: Tue, 20 Jul 2010 19:36:04 +0000 To: kde-commits Subject: [Phonon] 9556b81: Add support for using frameworks on OSX. Message-Id: <201007201936.o6KJa45K018350 () kore ! kollide ! net> X-MARC-Message: https://marc.info/?l=kde-commits&m=127965568430749 commit 9556b819b089da67290691f53ce7c1550ed23705 Author: Mike Arthur Date: Thu Mar 18 11:44:13 2010 +0000 Add support for using frameworks on OSX. The GCC visibility test fails due to missing framework flags on OSX. This commit adds the necessary flags. diff --git a/CMakeLists.txt b/CMakeLists.txt index a162269..e2054d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,10 @@ if (CMAKE_COMPILER_IS_GNUCXX) add_definitions(-DQT_NO_DEBUG) endif (MINGW) + if (QT_USE_FRAMEWORKS) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -F${QT_LIBRARY_DIR}") + endif (QT_USE_FRAMEWORKS) + check_cxx_compiler_flag(-fPIE HAVE_FPIE_SUPPORT) if(KDE4_ENABLE_FPIE) if(HAVE_FPIE_SUPPORT)