summaryrefslogtreecommitdiff
path: root/sysutils/bareos-server/files/patch-contrib_CMakeLists.txt
blob: 0c896142edfedc1dc4f242bb22c1b9663fac7178 (plain) (blame)
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
--- contrib/CMakeLists.txt	2023-03-24 08:05:20.000000000 -0500
+++ contrib/CMakeLists.txt	2023-04-07 17:52:51.095371000 -0500
@@ -24,10 +24,18 @@
 include(GNUInstallDirs)
 include(BareosSetVariableDefaults)
 
-add_subdirectory(fd-plugins)
-if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
-  add_subdirectory(misc)
-endif()
-if(NOT client-only)
-  add_subdirectory(dir-plugins)
+if(ENABLE_PYTHON)
+  if(client-only)
+    add_subdirectory(fd-plugins)
+  endif()
+
+  if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
+    if(client-only)
+      add_subdirectory(misc)
+    endif()
+  endif()
+
+  if(NOT client-only)
+    add_subdirectory(dir-plugins)
+  endif()
 endif()