From 508aaed08838e33aa970b4d26a0ab2a9f7c2d573 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 27 Jan 2011 15:29:26 +0000 Subject: [PATCH] Fix pyqt on mac. --- cmake/SipBindings.cmake | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/cmake/SipBindings.cmake b/cmake/SipBindings.cmake index 0d2378604..7ab86f17f 100644 --- a/cmake/SipBindings.cmake +++ b/cmake/SipBindings.cmake @@ -10,11 +10,19 @@ macro(add_sip_binding outputvar source) # Work out what the SIP flags should be for PyQt4. These would normally be # obtained from PyQt4.pyqtconfig.Configuration().pyqt_sip_flags, but we can't # call that when cross-compiling. - set(PYQT_SIP_FLAGS - "-x" "VendorID" - "-x" "PyQt_NoPrintRangeBug" - "-t" "Qt_4_6_2" - ) + if (APPLE) + set(PYQT_SIP_FLAGS + "-x" "VendorID" + "-x" "PyQt_NoPrintRangeBug" + "-t" "Qt_4_7_1" + ) + else (APPLE) + set(PYQT_SIP_FLAGS + "-x" "VendorID" + "-x" "PyQt_NoPrintRangeBug" + "-t" "Qt_4_6_2" + ) + endif (APPLE) if(WIN32) list(APPEND PYQT_SIP_FLAGS "-t" "WS_WIN")