--- cmake/Modules/FindPyQt4.cmake.orig
+++ cmake/Modules/FindPyQt4.cmake
@@ -42,7 +42,9 @@ ELSE(EXISTS PYQT4_VERSION AND EXISTS PYUIC4_EXECUTABLE)
     SET(PYQT4_FOUND TRUE)
   ENDIF(pyqt_config)
 
-  FIND_PROGRAM(PYUIC4_EXECUTABLE NAMES pyuic4)
+  IF(NOT PYUIC4_EXECUTABLE)
+    FIND_PROGRAM(PYUIC4_EXECUTABLE NAMES pyuic4)
+  ENDIF(NOT PYUIC4_EXECUTABLE)
   IF(PYUIC4_EXECUTABLE)
     SET(PYUIC4_FOUND TRUE)
   ENDIF(PYUIC4_EXECUTABLE)