Skip to content

Commit 5a2d1cf

Browse files
author
jef
committed
show PostgreSQL and SpatiaLite version in about
git-svn-id: http://svn.osgeo.org/qgis/trunk@13271 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f5137f5 commit 5a2d1cf

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/app/qgisapp.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@
211211
//
212212
#ifdef HAVE_POSTGRESQL
213213
#include "postgres/qgspgsourceselect.h"
214+
#ifdef HAVE_PGCONFIG
215+
#include <pg_config.h>
216+
#else
217+
#define PG_VERSION "unknown"
218+
#endif
214219
#endif
215220
#ifdef HAVE_SPATIALITE
216221
extern "C"
@@ -2353,13 +2358,13 @@ void QgisApp::about()
23532358
.arg( QGis::QGIS_VERSION )
23542359
.arg( QGis::QGIS_SVN_VERSION );
23552360
#ifdef HAVE_POSTGRESQL
2356-
versionString += tr( "\nThis copy of QGIS has been built with PostgreSQL support." );
2361+
versionString += tr( "\nThis copy of QGIS has been built with PostgreSQL support (%1)." ).arg( PG_VERSION );
23572362
#else
23582363
versionString += tr( "\nThis copy of QGIS has been built without PostgreSQL support." );
23592364
#endif
23602365

23612366
#ifdef HAVE_SPATIALITE
2362-
versionString += tr( "\nThis copy of QGIS has been built with SpatiaLite support." );
2367+
versionString += tr( "\nThis copy of QGIS has been built with SpatiaLite support (%1)." ).arg( spatialite_version() );
23632368
#else
23642369
versionString += tr( "\nThis copy of QGIS has been built without SpatiaLite support." );
23652370
#endif

src/providers/spatialite/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ INCLUDE_DIRECTORIES(../../core)
1717

1818
IF(WITH_INTERNAL_SPATIALITE)
1919
INCLUDE_DIRECTORIES(
20-
../core/spatialite/headers
21-
../core/spatialite/headers/spatialite
20+
../../core/spatialite/headers
21+
../../core/spatialite/headers/spatialite
2222
)
2323
ELSE(WITH_INTERNAL_SPATIALITE)
2424
INCLUDE_DIRECTORIES(${SPATIALITE_INCLUDE_DIR})

0 commit comments

Comments
 (0)