summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Leinir Turthra Jensen <[email protected]>2016-04-07 13:52:30 +0100
committerDan Leinir Turthra Jensen <[email protected]>2016-04-07 13:52:30 +0100
commit49d118e4c420149d8771c2d7a5166094a70c7261 (patch)
treef9af9646a3b724e77d1debac45e2244a875149c1
parent234d6d1ba7f6c59cc9dbfa6e682ab0d84b8c526e (diff)
Move the Pty check out
This is the same logic used at link request time, and unbreaks building on windows
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0624bf1..edc2639 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,13 +36,15 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
KIO
KHtml
KDELibs4Support
- Pty
Solid
Bookmarks
GuiAddons
Activities
)
-
+# As this is the check used for linkage, only require it in the same location...
+if (UNIX)
+ find_package(KF5Pty ${KF5_MIN_VERSION} REQUIRED)
+endif()
include(KDEInstallDirs)
include(KDECMakeSettings)