Skip to content

Commit ef04593

Browse files
author
jef
committedMay 14, 2008
revert r8437 and fix it different
- use FIND_PACKAGE(Qt4 REQUIRED) before SET(QT_... 1) as cmake's Modules/FindQt4.cmake suggests - should also fix #913 git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8438 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d39da53 commit ef04593

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ ENDIF (POSTGRES_FOUND)
133133

134134
#############################################################
135135
# search for Qt4
136+
FIND_PACKAGE(Qt4 REQUIRED)
136137

137138
SET( QT_USE_QT3SUPPORT TRUE )
138139
SET( QT_USE_QTXML TRUE )
@@ -144,7 +145,6 @@ IF (ENABLE_TESTS)
144145
ENABLE_TESTING()
145146
ENDIF (ENABLE_TESTS)
146147

147-
FIND_PACKAGE(Qt4 REQUIRED)
148148

149149
INCLUDE( ${QT_USE_FILE} )
150150

@@ -230,7 +230,7 @@ ELSE (WIN32)
230230
SET (DEFAULT_INCLUDE_SUBDIR include/qgis)
231231

232232
IF (UNIX AND NOT APPLE)
233-
ADD_DEFINITIONS(-DPREFIX=\\"${CMAKE_INSTALL_PREFIX}\\")
233+
ADD_DEFINITIONS(-DPREFIX=${CMAKE_INSTALL_PREFIX})
234234
ENDIF (UNIX AND NOT APPLE)
235235

236236
ENDIF (WIN32)

‎src/app/qgsabout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <QFile>
2525
#include <QTextStream>
2626
#include <QImageReader>
27-
#include <QtSql/QSqlDatabase>
27+
#include <QSqlDatabase>
2828
#include <iostream>
2929

3030
/* Uncomment this block to use preloaded images

0 commit comments

Comments
 (0)
Please sign in to comment.