summaryrefslogtreecommitdiff
path: root/Modules/UseQt4.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2009-01-23 17:37:44 -0500
committerClinton Stimpson <clinton@elemtech.com>2009-01-23 17:37:44 -0500
commitf1916357f2c6d7f4b78c3ef9db8ab01f1cc537b0 (patch)
treea74863fb06f6788a2d62c5d2bdf333042b88bb5e /Modules/UseQt4.cmake
parentb2d52b07adf0a977eefbc3b08a24558a8d962802 (diff)
downloadcmake-f1916357f2c6d7f4b78c3ef9db8ab01f1cc537b0.tar.gz
ENH: Should have a -F for framework includes on Mac. Fixes ParaView build with Qt 4.5 on Mac.
Diffstat (limited to 'Modules/UseQt4.cmake')
-rw-r--r--Modules/UseQt4.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/UseQt4.cmake b/Modules/UseQt4.cmake
index 9a8ce6c1fe..246b5368e9 100644
--- a/Modules/UseQt4.cmake
+++ b/Modules/UseQt4.cmake
@@ -11,6 +11,9 @@ SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO QT_NO_
SET_PROPERTY(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL QT_NO_DEBUG)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
+IF(Q_WS_MAC AND QT_USE_FRAMEWORKS)
+ ADD_DEFINITIONS(-F${QT_LIBRARY_DIR})
+ENDIF(Q_WS_MAC AND QT_USE_FRAMEWORKS)
SET(QT_LIBRARIES "")