11
11
# keep in mind that the check is recursive.
12
12
13
13
clever_new_module(std.date ON DOC "enable the date module" )
14
- clever_new_module(std.concurrent ON DOC "enable the concurrent module" )
14
+
15
+ clever_new_module(std.concurrent ON
16
+ DOC "enable the concurrent module"
17
+ LIBS PTHREAD)
18
+
15
19
clever_new_module(std.net ON DOC "enable the net module" )
16
20
clever_new_module(std.clever ON DOC "enable the clever module" )
17
21
clever_new_module(std.file ON DOC "enable the file module" )
@@ -25,7 +29,7 @@ clever_new_module(std.collection ON DOC "enable the collection module")
25
29
clever_new_module(std.getopt ON DOC "enable the getopt module" )
26
30
27
31
clever_new_module(std.regex ON
28
- DOC "enable the regex module"
32
+ DOC "enable the regex module"
29
33
LIBS PCRECPP)
30
34
31
35
clever_new_module(std.ffi ON
@@ -58,6 +62,7 @@ clever_new_module(gui.ncurses ON
58
62
)
59
63
60
64
# std.concurrent
65
+ clever_module_check(std.concurrent)
61
66
if (STD_CONCURRENT AND UNIX )
62
67
list (APPEND STD_CONCURRENT_LIB_DEPENDS PTHREAD)
63
68
clever_module_check(std.concurrent)
@@ -75,8 +80,12 @@ endif()
75
80
76
81
# std.net
77
82
clever_module_check(std.net)
78
- if (STD_NET AND MSVC )
79
- list (APPEND CLEVER_LIBRARIES ws2_32)
83
+ if (STD_NET)
84
+ if (MSVC )
85
+ list (APPEND CLEVER_LIBRARIES ws2_32)
86
+ elseif (HAIKU)
87
+ list (APPEND CLEVER_LIBRARIES network)
88
+ endif ()
80
89
endif ()
81
90
82
91
0 commit comments