Skip to content
Permalink
Browse files
Fix static build when WITH_POSTGRESQL isn't enabled
  • Loading branch information
nirvn authored and github-actions committed Oct 31, 2021
1 parent 350e9bf commit c39eb1a11d4a3009130d20ab1e9dab91a2a811eb
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/providers/qgsproviderregistry.cpp
@@ -44,7 +44,9 @@

#ifdef HAVE_STATIC_PROVIDERS
#include "qgswmsprovider.h"
#ifdef HAVE_POSTGRESQL
#include "qgspostgresprovider.h"
#endif
#include "qgsdelimitedtextprovider.h"
#endif

@@ -191,7 +193,9 @@ void QgsProviderRegistry::init()

#ifdef HAVE_STATIC_PROVIDERS
mProviders[ QgsWmsProvider::providerKey() ] = new QgsWmsProviderMetadata();
#ifdef HAVE_POSTGRESQL
mProviders[ QgsPostgresProvider::providerKey() ] = new QgsPostgresProviderMetadata();
#endif
mProviders[ QgsDelimitedTextProvider::providerKey() ] = new QgsDelimitedTextProviderMetadata();
#endif

0 comments on commit c39eb1a

Please sign in to comment.