Fix pyqt on mac.
This commit is contained in:
parent
703a3b43d6
commit
508aaed088
|
@ -10,11 +10,19 @@ macro(add_sip_binding outputvar source)
|
||||||
# Work out what the SIP flags should be for PyQt4. These would normally be
|
# 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
|
# obtained from PyQt4.pyqtconfig.Configuration().pyqt_sip_flags, but we can't
|
||||||
# call that when cross-compiling.
|
# call that when cross-compiling.
|
||||||
set(PYQT_SIP_FLAGS
|
if (APPLE)
|
||||||
"-x" "VendorID"
|
set(PYQT_SIP_FLAGS
|
||||||
"-x" "PyQt_NoPrintRangeBug"
|
"-x" "VendorID"
|
||||||
"-t" "Qt_4_6_2"
|
"-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)
|
if(WIN32)
|
||||||
list(APPEND PYQT_SIP_FLAGS "-t" "WS_WIN")
|
list(APPEND PYQT_SIP_FLAGS "-t" "WS_WIN")
|
||||||
|
|
Loading…
Reference in New Issue