Commit e40a833d authored by Laurent Montel's avatar Laurent Montel 😁

Use KF5_VERSION

parent 0225e665
...@@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 2.8.12) ...@@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 2.8.12)
project(KContacts) project(KContacts)
# ECM setup # ECM setup
find_package(ECM 5.19.0 CONFIG REQUIRED) set(KF5_VERSION "5.22.0")
find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${KContacts_SOURCE_DIR}/cmake) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${KContacts_SOURCE_DIR}/cmake)
include(GenerateExportHeader) include(GenerateExportHeader)
...@@ -19,7 +20,6 @@ include(ECMQtDeclareLoggingCategory) ...@@ -19,7 +20,6 @@ include(ECMQtDeclareLoggingCategory)
set(PIM_VERSION "5.2.40") set(PIM_VERSION "5.2.40")
set(KF5_VERSION "5.19.0")
set(KCONTACTS_LIB_VERSION ${PIM_VERSION}) set(KCONTACTS_LIB_VERSION ${PIM_VERSION})
ecm_setup_version(${KCONTACTS_LIB_VERSION} VARIABLE_PREFIX KContacts ecm_setup_version(${KCONTACTS_LIB_VERSION} VARIABLE_PREFIX KContacts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment