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