Skip to content

Commit 95b2370

Browse files
author
jef
committed
fix Qt test for CMake 2.6
git-svn-id: http://svn.osgeo.org/qgis/trunk@13006 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3249d77 commit 95b2370

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ ENDIF (SPATIALITE_FOUND)
170170

171171
#############################################################
172172
# search for Qt4
173-
FIND_PACKAGE(Qt4 4.4 COMPONENTS QtCore QtGui QtXml QtNetwork QtSvg QtSql QtWebKit REQUIRED)
173+
SET(QT_MIN_VERSION 4.4.0)
174+
FIND_PACKAGE(Qt4 ${QT_MIN_VERSION} COMPONENTS QtCore QtGui QtXml QtNetwork QtSvg QtSql QtWebKit REQUIRED)
174175

175176
IF (NOT QT_QTXML_FOUND OR NOT QT_QTNETWORK_FOUND OR NOT QT_QTSVG_FOUND OR NOT QT_QTSQL_FOUND OR NOT QT_QTWEBKIT_FOUND)
176177
MESSAGE(SEND_ERROR "Some Qt4 modules haven't been found!")

0 commit comments

Comments
 (0)