浏览代码

ENH: fix hard coded include from patch

Bill Hoffman 20 年之前
父节点
当前提交
bd88a6f6ce
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      Modules/FindQt.cmake

+ 2 - 4
Modules/FindQt.cmake

@@ -265,14 +265,12 @@ ENDIF(QT_MAX_VERSION)
 IF(QT_VERSION_SMALL_ENOUGH AND QT_VERSION_BIG_ENOUGH)
   # Call package for Qt3
   IF( QT_INST_MAJOR_VERSION LESS 4)
-    #BUG!!! should be FIND_PACKAGE(FindQt4.cmake) when part of CMake
-    INCLUDE(${CMAKE_INSTALL_PREFIX}/share/CMake/Modules/FindQt3.cmake)
+    FIND_PACKAGE(FindQt4.cmake)
   ENDIF( QT_INST_MAJOR_VERSION LESS 4)
   # Call package for Qt4
   IF( QT_INST_MAJOR_VERSION GREATER 3 )
     IF( QT_INST_MAJOR_VERSION LESS 5)
-      #BUG!!! should be FIND_PACKAGE(FindQt4.cmake) when part of CMake
-      INCLUDE(${CMAKE_INSTALL_PREFIX}/share/CMake/Modules/FindQt4.cmake)
+      FIND_PACKAGE(FindQt4.cmake)
     ELSE( QT_INST_MAJOR_VERSION LESS 5)
       IF( NOT Qt_FIND_QUIETLY AND Qt_FIND_REQUIRED) 
         MESSAGE(SEND_ERROR "Right now CMake supports only Qt-Versions less than 5.0.0")