Skip to content

Commit

Permalink
Fix static build when WITH_POSTGRESQL isn't enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 30, 2021
1 parent 4e50461 commit 5ad6aa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/providers/qgsproviderregistry.cpp
Expand Up @@ -44,7 +44,9 @@

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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5ad6aa2

Please sign in to comment.