kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

Blame SOURCES/0001-fix-detecting-qrcodegen.patch

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