aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Giboudeaux <[email protected]>2017-11-12 23:11:13 +0100
committerChristophe Giboudeaux <[email protected]>2017-11-12 23:11:13 +0100
commit5700cc59da6f8bba503a38ba4c902877206a59cf (patch)
tree1999b881def5b5c66c71faefa60d58ea0b991e0a
parente1e990f54f200ca7eefb1f2e58ebd31a43963f33 (diff)
Don't look for KF5Pty when using Windows.Applications/17.08
KF5::Pty is used in 2 backends : - sage isn't built for WIN32 platform, - maxima doesn't link to KF5::Pty on Windows. BUG: 386787
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c8bee54..471d1b4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,6 +10,7 @@ set (KDE_APPLICATIONS_VERSION_MINOR "08")
set (KDE_APPLICATIONS_VERSION_MICRO "3")
set (KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
+set(KF5_MIN_VERSION "5.15.0")
find_package(ECM 5.15.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${cantor_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
@@ -23,7 +24,7 @@ find_package(Qt5 CONFIG REQUIRED
XmlPatterns
Test)
-find_package(KF5 5.15 REQUIRED
+find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
Config
Crash
Completion
@@ -34,12 +35,15 @@ find_package(KF5 5.15 REQUIRED
CoreAddons
Archive
Parts
- Pty
TextWidgets
KIO
XmlGui
I18n)
+if(NOT WIN32)
+find_package(KF5 ${KF5_MIN_VERSION} REQUIRED Pty)
+endif()
+
include(FeatureSummary)
include(ECMInstallIcons)
include(ECMSetupVersion)