From c2afba9ed3c23a687ade725dd31f5f6858f94ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Sat, 29 Feb 2020 20:12:34 +0100 Subject: [PATCH] CMake: Split QtWebEngine find_package calls Required for cmake to search for QtWebEngine in a seperate prefix, for example when building flatpaks, where Qt is in /usr but QtWebEngine is in /app since org.kde.Sdk 5.13. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 207c90a5f..d56aec981 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,9 @@ add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DQT_NO_CAS # Mandatory: Qt5 set(QT_MIN_VERSION "5.9.0") -find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets Network Sql QuickWidgets PrintSupport WebEngine WebEngineWidgets WebChannel) +find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Core Widgets Network Sql QuickWidgets PrintSupport WebChannel) +find_package(Qt5WebEngine ${QT_MIN_VERSION} REQUIRED) +find_package(Qt5WebEngineWidgets ${QT_MIN_VERSION} REQUIRED) if (BUILD_TESTING) find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test) endif()