kpmcore: factor out sometimes-needed dependencies
This commit is contained in:
parent
0d1adc0692
commit
57746be66e
@ -11,6 +11,10 @@
|
||||
# library, which will add definition WITHOUT_KPMcore.
|
||||
#
|
||||
if(NOT TARGET calapmcore)
|
||||
find_package(${kfname}Config CONFIG)
|
||||
find_package(${kfname}I18n CONFIG)
|
||||
find_package(${kfname}WidgetsAddons CONFIG)
|
||||
|
||||
if(NOT WITH_QT6)
|
||||
# TODO: Qt6 how to detect the version of Qt that KPMCore needs?
|
||||
find_package(KPMcore 20.04.0)
|
||||
|
@ -3,10 +3,6 @@
|
||||
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
||||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
#
|
||||
find_package(KF5Config CONFIG)
|
||||
find_package(KF5I18n CONFIG)
|
||||
find_package(KF5WidgetsAddons CONFIG)
|
||||
|
||||
include(KPMcoreHelper)
|
||||
|
||||
if(KPMcore_FOUND)
|
||||
|
@ -45,10 +45,6 @@ find_package(ECM ${ECM_VERSION} REQUIRED NO_MODULE)
|
||||
|
||||
include(KPMcoreHelper)
|
||||
|
||||
find_package(${kfname}Config CONFIG)
|
||||
find_package(${kfname}I18n CONFIG)
|
||||
find_package(${kfname}WidgetsAddons CONFIG)
|
||||
|
||||
if(KPMcore_FOUND)
|
||||
include_directories(${PROJECT_BINARY_DIR}/src/libcalamaresui)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user