diff --git a/src/auth/oauth2/core/qgsauthoauth2method.cpp b/src/auth/oauth2/core/qgsauthoauth2method.cpp index 15045cc6c83..aa25bd3005e 100644 --- a/src/auth/oauth2/core/qgsauthoauth2method.cpp +++ b/src/auth/oauth2/core/qgsauthoauth2method.cpp @@ -40,7 +40,7 @@ #include #include #include -#ifdef WITH_GUI +#ifdef HAVE_GUI #include #endif diff --git a/tests/src/auth/testqgsauthoauth2method.cpp b/tests/src/auth/testqgsauthoauth2method.cpp index 826ef5efb88..db407da27bf 100644 --- a/tests/src/auth/testqgsauthoauth2method.cpp +++ b/tests/src/auth/testqgsauthoauth2method.cpp @@ -29,7 +29,7 @@ #include "qgsapplication.h" #include "qgsauthmanager.h" #include "qgsauthoauth2config.h" -#ifdef WITH_GUI +#ifdef HAVE_GUI #include "qgsauthoauth2edit.h" #endif @@ -418,7 +418,7 @@ void TestQgsAuthOAuth2Method::testOAuth2ConfigUtils() void TestQgsAuthOAuth2Method::testDynamicRegistrationNoEndpoint() { -#ifdef WITH_GUI +#ifdef HAVE_GUI QgsAuthOAuth2Config *config = baseConfig(); config->setClientId( QString() ); config->setClientSecret( QString() ); @@ -444,7 +444,7 @@ void TestQgsAuthOAuth2Method::testDynamicRegistrationNoEndpoint() void TestQgsAuthOAuth2Method::testDynamicRegistration() { -#ifdef WITH_GUI +#ifdef HAVE_GUI QgsAuthOAuth2Config *config = baseConfig(); config->setClientId( QString() ); config->setClientSecret( QString() ); @@ -483,7 +483,7 @@ void TestQgsAuthOAuth2Method::testDynamicRegistration() void TestQgsAuthOAuth2Method::testDynamicRegistrationJwt() { -#ifdef WITH_GUI +#ifdef HAVE_GUI QgsAuthOAuth2Config *config = baseConfig(); config->setClientId( QString() ); config->setClientSecret( QString() );