Make sure we are using fmt/spdlog submodules for static builds

Otherwise we can end up linking against libfmt and/or libspdlog
This commit is contained in:
Jason Rhinelander 2022-09-27 00:11:54 -03:00
parent c5157aa15c
commit 7eb357971b
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ add_subdirectory(date EXCLUDE_FROM_ALL)
set(JSON_BuildTests OFF CACHE INTERNAL "")
set(JSON_MultipleHeaders ON CACHE BOOL "") # Allows multi-header nlohmann use
add_subdirectory(nlohmann-json EXCLUDE_FROM_ALL)
if(BUILD_STATIC_DEPS)
set(OXEN_LOGGING_FORCE_SUBMODULES TRUE CACHE BOOL "" FORCE)
endif()
add_subdirectory(oxen-logging)
# uSockets doesn't really have a proper build system (just a very simple Makefile) so build it