From 7eb357971bba81dd64576afac0e8f910145dac24 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Tue, 27 Sep 2022 00:11:54 -0300 Subject: [PATCH] Make sure we are using fmt/spdlog submodules for static builds Otherwise we can end up linking against libfmt and/or libspdlog --- external/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 60671626e..b9b80aa9e 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -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