mirror of
https://github.com/lux-tel/libsession-util.git
synced 2026-10-30 20:25:11 +00:00
When we load oxen-logging via system lib, the code that was supposed to also inject fmt/spdlog with it was not working properly because the "did we go via submodule" was falsely returning true. This fixes it by using an intermediate library so that we can properly distinguish between the cases (final oxen::logging exists - submodule, which already gives fmt/spdlog; otherwise use the intermediate target and set final oxen::logging alias manually). This also fixes the default STATIC_BUNDLE to depend on BUILD_STATIC_DEPS, rather than NOT BUILD_SHARED_LIBS, so that -DBUILD_STATIC_DEPS=OFF doesn't accidentally default to attempting a static bundle without static deps. (That case is also now detected and becomes a fatal error).