@@ -26,7 +26,6 @@ if(SUBMODULE_CHECK)
26
26
message (STATUS "Checking submodules" )
27
27
check_submodule(CLI11)
28
28
check_submodule(cpr)
29
- check_submodule(libevent)
30
29
check_submodule(nlohmann)
31
30
check_submodule(oxen-encoding )
32
31
check_submodule(oxen-libquic)
@@ -51,28 +50,13 @@ macro(system_or_submodule BIGNAME smallname pkgconf subdir)
51
50
message (STATUS "Found system ${smallname} ${${BIGNAME} _VERSION}" )
52
51
else ()
53
52
message (STATUS "using ${smallname} submodule" )
54
- add_subdirectory (${subdir} )
53
+ add_subdirectory (${subdir} EXCLUDE_FROM_ALL )
55
54
endif ()
56
55
if (NOT TARGET ${smallname} ::${smallname} )
57
56
add_library (${smallname} ::${smallname} ALIAS ${smallname} )
58
57
endif ()
59
58
endmacro ()
60
59
61
- # libevent
62
- set (EVENT__LIBRARY_TYPE "STATIC" CACHE STRING "" FORCE)
63
- set (EVENT__DISABLE_MBEDTLS ON CACHE BOOL "" FORCE)
64
- set (EVENT__DISABLE_MBEDTLS ON CACHE BOOL "" FORCE)
65
- set (EVENT__DISABLE_OPENSSL ON CACHE BOOL "" FORCE)
66
- set (EVENT__DISABLE_BENCHMARK ON CACHE BOOL "" FORCE)
67
- set (EVENT__DISABLE_SAMPLES ON CACHE BOOL "" FORCE)
68
- set (EVENT__DISABLE_TESTS ON CACHE BOOL "" FORCE)
69
- add_subdirectory (libevent EXCLUDE_FROM_ALL )
70
-
71
- add_library (libevent::core ALIAS event_core)
72
- add_library (libevent::threads ALIAS event_pthreads)
73
- add_library (libevent::extra ALIAS event_extra)
74
-
75
-
76
60
system_or_submodule(OXENC oxenc liboxenc>=1.1.0 oxen-encoding )
77
61
system_or_submodule(OXENMQ oxenmq liboxenmq>=1.2.14 oxen-mq)
78
62
@@ -102,9 +86,8 @@ if(WITH_PEERSTATS)
102
86
endif ()
103
87
104
88
105
- # we get oxen-logging from libquic; forcing submodule ensures fmt>10.0.0
106
- set (OXEN_LOGGING_FORCE_SUBMODULES ON CACHE INTERNAL "" )
107
- add_subdirectory (oxen-libquic)
89
+ set (LIBQUIC_BUILD_TESTS OFF CACHE BOOL "" )
90
+ system_or_submodule(OXENQUIC quic liboxenquic>=1.2.0 oxen-libquic)
108
91
109
92
110
93
# cpr configuration. Ideally we'd just do this via add_subdirectory, but cpr's cmake requires
0 commit comments