Fix build with CMP0048 set to NEW

This commit is contained in:
Sven Brauch 2017-01-03 15:17:45 +01:00
parent 5a0d0c103a
commit ad1b0beff8

View File

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.0)
project(Plasma)
set(KF5_VERSION "5.30.0") # handled by release scripts
set(KF5_DEP_VERSION "5.29.0") # handled by release scripts
project(Plasma VERSION ${KF5_VERSION})
# ECM setup
include(FeatureSummary)
@ -21,10 +23,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(KDEPackageAppTemplates)
set(KF5_VERSION "5.30.0") # handled by release scripts
set(KF5_DEP_VERSION "5.29.0") # handled by release scripts
ecm_setup_version(${KF5_VERSION}
ecm_setup_version(PROJECT
VARIABLE_PREFIX PLASMA
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/plasma_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5PlasmaConfigVersion.cmake"