ports/sysutils/bareos21-server/files/patch-core-cmake_BareosFindAllLibraries.cmake
Jose Alonso Cardenas Marquez deb2a552d4 sysutils/bareos21-*: Copy bareos-* ports to bareos21-*
- Update to 21.1.7
- sysutils/bareos-* ports will be updated to 22.0.3
2023-04-10 15:28:58 -05:00

25 lines
981 B
CMake

--- core/cmake/BareosFindAllLibraries.cmake 2022-08-05 04:40:11.000000000 -0500
+++ core/cmake/BareosFindAllLibraries.cmake 2022-10-31 16:28:14.422391000 -0500
@@ -175,12 +175,18 @@
)
endif()
-bareosfindlibraryandheaders("rados" "rados/librados.h" "")
-bareosfindlibraryandheaders("radosstriper" "radosstriper/libradosstriper.h" "")
-bareosfindlibraryandheaders("cephfs" "cephfs/libcephfs.h" "")
+if(rados)
+ bareosfindlibraryandheaders("rados" "rados/librados.h" "")
+ bareosfindlibraryandheaders("radosstriper" "radosstriper/libradosstriper.h" "")
+endif()
+if(cephfs)
+ bareosfindlibraryandheaders("cephfs" "cephfs/libcephfs.h" "")
+endif()
bareosfindlibraryandheaders("pthread" "pthread.h" "")
bareosfindlibraryandheaders("cap" "sys/capability.h" "")
-bareosfindlibraryandheaders("gfapi" "glusterfs/api/glfs.h" "")
+if(gfapi)
+ bareosfindlibraryandheaders("gfapi" "glusterfs/api/glfs.h" "")
+endif()
bareosfindlibraryandheaders("pam" "security/pam_appl.h" "")