aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-22 12:49:22 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-22 12:49:22 (GMT)
commit9bd041a77656468228c56c13a92e1eb05d3cb0ea (patch)
tree1b94d9a9925fa10e835a46a34777a9c58f4fae5b
parenteb2e90f0a7188eb33f74c459c28e941f2e53081f (diff)
Use QT_REQUIRED_VERSION
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c87fe7..0b4786f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 2.8.12)
project(KContacts)
# ECM setup
+set(QT_REQUIRED_VERSION "5.5.0")
set(KF5_VERSION "5.25.0")
find_package(ECM ${KF5_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${KContacts_SOURCE_DIR}/cmake)
@@ -29,7 +30,7 @@ ecm_setup_version(${KCONTACTS_LIB_VERSION} VARIABLE_PREFIX KContacts
)
########### Find packages ###########
-find_package(Qt5 5.4 REQUIRED COMPONENTS DBus Gui)
+find_package(Qt5 ${QT_REQUIRED_VERSION} REQUIRED COMPONENTS DBus Gui)
find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS CoreAddons I18n Config Codecs)
########### Targets ###########