diff -Naur a/lang/cpp/src/GpgmeppConfig.cmake.in.in b/lang/cpp/src/GpgmeppConfig.cmake.in.in
--- a/lang/cpp/src/GpgmeppConfig.cmake.in.in	2025-02-10 15:52:23.000000000 +0600
+++ b/lang/cpp/src/GpgmeppConfig.cmake.in.in	2025-02-18 10:36:13.788488048 +0600
@@ -63,7 +63,7 @@
 
 set_target_properties(Gpgmepp PROPERTIES
   INTERFACE_INCLUDE_DIRECTORIES "@resolved_includedir@/gpgme++;@resolved_includedir@"
-  INTERFACE_LINK_LIBRARIES "pthread;@resolved_libdir@/libgpgme@libsuffix@;@LIBASSUAN_LIBS@"
+  INTERFACE_LINK_LIBRARIES "pthread;@resolved_libdir@/libgpgme@libsuffix@"
   IMPORTED_LOCATION "@resolved_libdir@/libgpgmepp@libsuffix@"
 )
 
diff -Naur a/src/gpgme-config.in b/src/gpgme-config.in
--- a/src/gpgme-config.in	2018-12-03 15:37:25.000000000 +0600
+++ b/src/gpgme-config.in	2025-02-18 10:36:59.981240681 +0600
@@ -25,12 +25,12 @@
 libs="-L@libdir@"
 
 # Network libraries.
-assuan_cflags="@LIBASSUAN_CFLAGS@"
-assuan_libs="@LIBASSUAN_LIBS@"
+#assuan_cflags="@LIBASSUAN_CFLAGS@"
+#assuan_libs="@LIBASSUAN_LIBS@"
 
 # Configure libgpg-error.
 gpg_error_cflags="@GPG_ERROR_CFLAGS@"
-gpg_error_libs="@GPG_ERROR_LIBS@"
+#gpg_error_libs="@GPG_ERROR_LIBS@"
 
 # Configure thread packages.
 thread_modules=""
