]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
[E.A.] Search for SIP_ROOT only if SIP_EXECUTABLE is defined
authoradam <adam>
Tue, 25 Nov 2008 09:45:15 +0000 (09:45 +0000)
committeradam <adam>
Tue, 25 Nov 2008 09:45:15 +0000 (09:45 +0000)
(idem for PYUIC_ROOT)

adm_local/cmake_files/FindSIPPYQT.cmake

index 844e26dcac3c73b994a312ea721f0f93eeb0b813..07203df5db5943ed62056796df7fa8afb3f2de1f 100644 (file)
@@ -2,16 +2,20 @@
 FIND_PROGRAM(SIP_EXECUTABLE sip)
 
 SET(SIP_ROOT ${SIP_EXECUTABLE})
+IF(SIP_ROOT)
 GET_FILENAME_COMPONENT(SIP_ROOT ${SIP_ROOT} PATH)
 GET_FILENAME_COMPONENT(SIP_ROOT ${SIP_ROOT} PATH)
+ENDIF(SIP_ROOT)
 
 SET(SIP_INCLUDES -I${SIP_ROOT}/include/python${PYTHON_VERSION})
 
 FIND_PROGRAM(PYUIC_EXECUTABLE pyuic4)
 
 SET(PYUIC_ROOT ${PYUIC_EXECUTABLE})
+IF(PYUIC_ROOT)
 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)