freebsd-ports/sysutils/bareos-server/files/patch-contrib_CMakeLists.txt
Jose Alonso Cardenas Marquez e106c20f31 sysutils/bareos-*: update to 22.0.3
- Remove obsolete patch files
- Remove obsolete options
2023-04-10 15:28:59 -05:00

27 lines
655 B
Text

--- 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(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()