]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
If PYQT_SIPS is defined, use it !
authoradam <adam>
Fri, 26 Feb 2010 15:22:20 +0000 (15:22 +0000)
committeradam <adam>
Fri, 26 Feb 2010 15:22:20 +0000 (15:22 +0000)
adm_local/cmake_files/FindSIPPYQT.cmake

index f1526b1753b7f4c49b2420c8da8f3aa0613e6450..162adfe3bd054d2183aac70699bc70ff3f7744f7 100644 (file)
@@ -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)