summaryrefslogtreecommitdiff
blob: 3db739a8c82b8a4db670ab26bcabd7a042b40231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 5a6bf3c71cd017f3e43a74d9ac39efa3921c6d99 Mon Sep 17 00:00:00 2001
From: Joshua Goins <josh@redstrate.com>
Date: Sat, 14 Dec 2024 20:18:24 -0500
Subject: [PATCH] Don't build behaim or marble-maps targets in non-KF builds

These depend on KDE frameworks, so don't try to build them when don't
have them.
---
 src/apps/CMakeLists.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt
index 6f9dc25420..013cd3c52f 100644
--- a/src/apps/CMakeLists.txt
+++ b/src/apps/CMakeLists.txt
@@ -11,6 +11,8 @@ if(BUILD_MARBLE_APPS)
         endif()
     endif()
 
-    add_subdirectory(behaim)
-    add_subdirectory(marble-maps)
+    if (TARGET KF6::Config AND TARGET KF6::I18n AND TARGET KF6::CoreAddons)
+        add_subdirectory(behaim)
+        add_subdirectory(marble-maps)
+    endif()
 endif()
-- 
GitLab