Git commit 6a58952fd50a966de8b14b5e682587ac8bb5a272 by Friedrich W. H. Koss= ebau. Committed on 31/01/2018 at 19:49. Pushed by kossebau into branch 'master'. Use KF5_MIN_VERSION also for ECM, now that it's part of KF M +4 -3 CMakeLists.txt https://commits.kde.org/kdeplasma-addons/6a58952fd50a966de8b14b5e682587ac8b= b5a272 diff --git a/CMakeLists.txt b/CMakeLists.txt index f36e2cb3d..0cd41ba6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,9 +9,12 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") message(FATAL_ERROR "plasma requires an out of source build. Please cre= ate a separate build directory and run 'cmake path_to_plasma [options]' the= re.") endif() = +set(REQUIRED_QT_VERSION 5.9.0) +set(KF5_MIN_VERSION 5.42.0) + include(FeatureSummary) = -find_package(ECM 1.0.0 REQUIRED NO_MODULE) +find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) = include(KDEInstallDirs) @@ -21,8 +24,6 @@ include(ECMQtDeclareLoggingCategory) include(ECMInstallIcons) include(GenerateExportHeader) = -set(REQUIRED_QT_VERSION 5.9.0) -set(KF5_MIN_VERSION 5.42.0) find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Gui