From 09a11cee26af4ca55e5839dd44e32400147dc119 Mon Sep 17 00:00:00 2001
From: Alexander Lohnau <alexander.lohnau@gmx.de>
Date: Sun, 11 Sep 2022 11:55:49 +0200
Subject: [PATCH] Fix finding of WebEngineWidgets

---
 src/LibAlkimiaConfig.cmake.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/LibAlkimiaConfig.cmake.in b/src/LibAlkimiaConfig.cmake.in
index 5c2dfc3..1ad866e 100644
--- a/src/LibAlkimiaConfig.cmake.in
+++ b/src/LibAlkimiaConfig.cmake.in
@@ -9,7 +9,9 @@ if("@BUILD_QT4@" STREQUAL "ON" OR "@BUILD_QT4@" STREQUAL "1")
 else()
     find_dependency(Qt5Core)
     find_dependency(Qt5DBus)
-    if (@QT_BROWSER_LIB@)
+    if (@BUILD_WITH_WEBENGINE@)
+        find_dependency(Qt@QT_MAJOR_VERSION@WebEngineWidgets 5.15.0)
+    elseif (@QT_BROWSER_LIB@)
         find_dependency(@QT_BROWSER_LIB@)
     endif()
     if (@QT_NETWORK_LIB@)
-- 
2.40.0

