From 04bf32cf6b4cd0086c915cc336c9acf3ed29b7ae Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 23 Oct 2020 17:01:11 +0200 Subject: [PATCH] Allow configuring package suffix for qtutilities individually --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6522558..514a222 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ set(META_USE_QQC2 ON) set(META_ANDROID_PACKAGE_NAME "org.martchus.passwordmanager") set(META_VERSION_MAJOR 4) set(META_VERSION_MINOR 1) -set(META_VERSION_PATCH 5) +set(META_VERSION_PATCH 6) # add project files set(HEADER_FILES cli/cli.h model/entryfiltermodel.h model/entrymodel.h model/fieldmodel.h) @@ -123,7 +123,9 @@ use_cpp_utilities() include(BasicConfig) # find qtutilities -find_package(qtutilities${CONFIGURATION_PACKAGE_SUFFIX} 6.0.0 REQUIRED) +set(CONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES "${CONFIGURATION_PACKAGE_SUFFIX}" + CACHE STRING "sets the suffix for qtutilities") +find_package(qtutilities${CONFIGURATION_PACKAGE_SUFFIX_QTUTILITIES} 6.0.0 REQUIRED) use_qt_utilities() # find passwordfile