Skip to content
Permalink
Browse files
Fix static build when WITH_POSTGRESQL isn't enabled
  • Loading branch information
nirvn committed Oct 30, 2021
1 parent 4e50461 commit 5ad6aa23bc3e27f7d38de5bb5b08aeec7ca8bd2b
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 5ad6aa2

Please sign in to comment.