Navigation Menu

Skip to content

Commit

Permalink
revert r8437 and fix it different
Browse files Browse the repository at this point in the history
- 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@8438 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 14, 2008
1 parent 7c0d8ac commit 6f03494
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -133,6 +133,7 @@ ENDIF (POSTGRES_FOUND)

#############################################################
# search for Qt4
FIND_PACKAGE(Qt4 REQUIRED)

SET( QT_USE_QT3SUPPORT TRUE )
SET( QT_USE_QTXML TRUE )
Expand All @@ -144,7 +145,6 @@ IF (ENABLE_TESTS)
ENABLE_TESTING()
ENDIF (ENABLE_TESTS)

FIND_PACKAGE(Qt4 REQUIRED)

INCLUDE( ${QT_USE_FILE} )

Expand Down Expand Up @@ -230,7 +230,7 @@ ELSE (WIN32)
SET (DEFAULT_INCLUDE_SUBDIR include/qgis)

IF (UNIX AND NOT APPLE)
ADD_DEFINITIONS(-DPREFIX=\\"${CMAKE_INSTALL_PREFIX}\\")
ADD_DEFINITIONS(-DPREFIX=${CMAKE_INSTALL_PREFIX})
ENDIF (UNIX AND NOT APPLE)

ENDIF (WIN32)
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsabout.cpp
Expand Up @@ -24,7 +24,7 @@
#include <QFile>
#include <QTextStream>
#include <QImageReader>
#include <QtSql/QSqlDatabase>
#include <QSqlDatabase>
#include <iostream>

/* Uncomment this block to use preloaded images
Expand Down

0 comments on commit 6f03494

Please sign in to comment.