aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bareos22-server/files/patch-core-CMakeLists.txt
blob: b7e291bf0d600928df3e263d1ceae5f61e552136 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- core/CMakeLists.txt	2022-11-09 08:14:10.000000000 -0500
+++ core/CMakeLists.txt	2022-11-18 00:11:43.670601000 -0500
@@ -283,7 +283,9 @@
   set(HAVE_FREEBSD_OS 1)
   include_directories(/usr/local/include)
   link_directories(/usr/local/lib)
-  link_libraries(intl)
+  if(nls)
+    link_libraries(intl)
+  endif()
   check_cxx_compiler_flag(
     -Wunused-but-set-variable compiler_will_warn_of_unused_but_set_variable
   )
@@ -350,7 +352,9 @@
   add_definitions("-D_FILE_OFFSET_BITS=64")
 endif()
 
-include(FindIntl)
+if(nls)
+  include(FindIntl)
+endif()
 
 if(developer)
   add_definitions("-DDEVELOPER=1")
@@ -368,7 +372,7 @@
 include(BareosFindStaticCodeAnalysisTools)
 
 if(NOT client-only
-   AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS"
+   AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS|FreeBSD"
    AND CMAKE_SIZEOF_VOID_P EQUAL 8
 )
   # droplet does not build on solaris because of sys/cdefs.h: No such file or
@@ -782,7 +786,6 @@
 
 add_subdirectory(scripts)
 add_subdirectory(manpages)
-add_subdirectory(platforms)
 add_subdirectory(src)
 
 include(BareosLocalBuildDefinitions OPTIONAL