From edee51a08a641413a479821f15c3f27d332b55c8 Mon Sep 17 00:00:00 2001 From: Thiago Sueto Date: Wed, 13 Nov 2024 15:01:13 -0300 Subject: [PATCH] Make all QML modules required so their absence makes compilation fail --- CMakeLists.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40b2a524c..6687cfd23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,7 +94,7 @@ else() set_package_properties(KF6QQC2DesktopStyle PROPERTIES TYPE RUNTIME ) - ecm_find_qmlmodule(org.kde.syntaxhighlighting 1.0) + ecm_find_qmlmodule(org.kde.syntaxhighlighting 1.0 REQUIRED) find_package(ICU 61.0 COMPONENTS uc) set_package_properties(ICU PROPERTIES @@ -123,13 +123,12 @@ set_package_properties(cmark PROPERTIES PURPOSE "Convert markdown to html" ) -ecm_find_qmlmodule(org.kde.kquickimageeditor 1.0) -ecm_find_qmlmodule(org.kde.kitemmodels 1.0) -ecm_find_qmlmodule(org.kde.quickcharts 1.0) -ecm_find_qmlmodule(QtLocation) -ecm_find_qmlmodule(org.kde.prison) +ecm_find_qmlmodule(QtLocation REQUIRED) +ecm_find_qmlmodule(org.kde.kitemmodels 1.0 REQUIRED) +ecm_find_qmlmodule(org.kde.quickcharts 1.0 REQUIRED) +ecm_find_qmlmodule(org.kde.prison REQUIRED) -find_package(KQuickImageEditor COMPONENTS) +find_package(KQuickImageEditor REQUIRED COMPONENTS) set_package_properties(KQuickImageEditor PROPERTIES TYPE REQUIRED DESCRIPTION "Simple image editor for QtQuick applications"