Skip to content

Commit 5baeed1

Browse files
author
gjm
committed
Fix ticket #2882 (not using QGIS_LIB_SUBDIR to determine pathname to the
qgis library directory for linux builds) git-svn-id: http://svn.osgeo.org/qgis/trunk@13912 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent da5df90 commit 5baeed1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmake_templates/qgsconfig.h.in

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#define QGIS_PLUGIN_SUBDIR "${QGIS_PLUGIN_SUBDIR}"
2424
#define QGIS_DATA_SUBDIR "${QGIS_DATA_SUBDIR}"
2525
#define QGIS_LIBEXEC_SUBDIR "${QGIS_LIBEXEC_SUBDIR}"
26+
#define QGIS_LIB_SUBDIR "${QGIS_LIB_SUBDIR}"
2627

2728
#cmakedefine HAVE_POSTGRESQL
2829

src/app/qgisapp.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -4931,8 +4931,10 @@ void QgisApp::showPluginManager()
49314931
void QgisApp::loadPythonSupport()
49324932
{
49334933
QString pythonlibName( "qgispython" );
4934-
#if defined(Q_WS_MAC) || defined(Q_OS_LINUX)
4934+
#if defined(Q_WS_MAC)
49354935
pythonlibName.prepend( QgsApplication::prefixPath() + "/lib/" );
4936+
#elif defined(Q_OS_LINUX)
4937+
pythonlibName.prepend( QgsApplication::prefixPath() + "/" + QGIS_LIB_SUBDIR + "/" );
49364938
#endif
49374939
#ifdef __MINGW32__
49384940
pythonlibName.prepend( "lib" );

0 commit comments

Comments
 (0)