148d9d2
From 2f11e4247b6332b06a5b23c33207fa10767244a6 Mon Sep 17 00:00:00 2001
4de5d69
From: Thierry Vignaud <thierry.vignaud@gmail.com>
4de5d69
Date: Thu, 30 Jan 2020 11:19:20 +0000
4de5d69
Subject: [PATCH] fix detecting qrcodegen
4de5d69
4de5d69
Change-Id: Ib945b57420083489273cefc5655eb50932b5a3f8
4de5d69
---
d3839ad
 configure.ac                           | 2 +-
d3839ad
 cui/source/dialogs/QrCodeGenDialog.cxx | 2 +-
d3839ad
 2 files changed, 2 insertions(+), 2 deletions(-)
4de5d69
4de5d69
diff --git a/configure.ac b/configure.ac
148d9d2
index 5a14369..ebd1b55 100644
4de5d69
--- a/configure.ac
4de5d69
+++ b/configure.ac
148d9d2
@@ -10250,7 +10250,7 @@ else
148d9d2
         AC_MSG_RESULT([external])
148d9d2
         SYSTEM_QRCODEGEN=TRUE
148d9d2
         AC_LANG_PUSH([C++])
148d9d2
-        AC_CHECK_HEADER(qrcodegen/QrCode.hpp, [],
148d9d2
+        AC_CHECK_HEADER(qrcodegencpp/QrCode.hpp, [],
148d9d2
             [AC_MSG_ERROR(qrcodegen headers not found.)], [#include <stdexcept>])
148d9d2
         AC_CHECK_LIB([qrcodegencpp], [main], [:],
148d9d2
             [ AC_MSG_ERROR(qrcodegen C++ library not found.) ], [])
d3839ad
diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx
148d9d2
index 7f3f6a8..b79a356 100644
d3839ad
--- a/cui/source/dialogs/QrCodeGenDialog.cxx
d3839ad
+++ b/cui/source/dialogs/QrCodeGenDialog.cxx
148d9d2
@@ -19,7 +19,7 @@
d3839ad
 
148d9d2
 #if ENABLE_QRCODEGEN
d3839ad
 #if defined(SYSTEM_QRCODEGEN)
d3839ad
-#include <qrcodegen/QrCode.hpp>
d3839ad
+#include <qrcodegencpp/QrCode.hpp>
d3839ad
 #else
d3839ad
 #include <QrCode.hpp>
d3839ad
 #endif
4de5d69
-- 
884fc20
2.26.2
4de5d69