summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-07-15 16:39:14 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-07-15 16:39:14 (GMT)
commitbd88a6f6cecb3aafa5262d5991b0e8cc5a15d7a2 (patch)
tree210024b346dc8ed9d76cf4a3d4d8abb7e9a8232b /Modules/FindQt.cmake
parentdc1426b6a3ad05d83acbca6bd26bf0f67dcd330d (diff)
downloadCMake-bd88a6f6cecb3aafa5262d5991b0e8cc5a15d7a2.zip
CMake-bd88a6f6cecb3aafa5262d5991b0e8cc5a15d7a2.tar.gz
CMake-bd88a6f6cecb3aafa5262d5991b0e8cc5a15d7a2.tar.bz2
ENH: fix hard coded include from patch
Diffstat (limited to 'Modules/FindQt.cmake')
-rw-r--r--Modules/FindQt.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index 50e4bda..eeed58c 100644
--- a/Modules/FindQt.cmake
+++ b/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")