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