From: adam Date: Fri, 26 Feb 2010 15:22:20 +0000 (+0000) Subject: If PYQT_SIPS is defined, use it ! X-Git-Tag: V5_1_4a1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f863afde2dd11774210cb86ae4977d935b755a6;p=modules%2Fgui.git If PYQT_SIPS is defined, use it ! --- diff --git a/adm_local/cmake_files/FindSIPPYQT.cmake b/adm_local/cmake_files/FindSIPPYQT.cmake index f1526b175..162adfe3b 100644 --- a/adm_local/cmake_files/FindSIPPYQT.cmake +++ b/adm_local/cmake_files/FindSIPPYQT.cmake @@ -46,15 +46,18 @@ GET_FILENAME_COMPONENT(PYUIC_ROOT ${PYUIC_ROOT} PATH) GET_FILENAME_COMPONENT(PYUIC_ROOT ${PYUIC_ROOT} PATH) ENDIF(PYUIC_ROOT) -IF(WINDOWS) - SET(PYQT_SIPS ${PYUIC_ROOT}/sip) -ELSE(WINDOWS) - IF(PYUIC_ROOT STREQUAL /usr) - SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip/PyQt4) - ELSE(PYUIC_ROOT STREQUAL /usr) - SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip) - ENDIF(PYUIC_ROOT STREQUAL /usr) -ENDIF(WINDOWS) +SET(PYQT_SIPS $ENV{PYQT_SIPS}) +IF(NOT PYQT_SIPS) + IF(WINDOWS) + SET(PYQT_SIPS ${PYUIC_ROOT}/sip) + ELSE(WINDOWS) + IF(PYUIC_ROOT STREQUAL /usr) + SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip/PyQt4) + ELSE(PYUIC_ROOT STREQUAL /usr) + SET(PYQT_SIPS ${PYUIC_ROOT}/share/sip) + ENDIF(PYUIC_ROOT STREQUAL /usr) + ENDIF(WINDOWS) +ENDIF(NOT PYQT_SIPS) SET(PYQT_INCLUDES -I${PYQT_SIPS}) SET(PYQT_INCLUDES ${PYQT_INCLUDES} -I${PYQT_SIPS}/QtCore -I${PYQT_SIPS}/QtGui)