Is it possible to automatically link static FMT or even disable it? #2442
-
I just tested spdlog as static library (it's installed via vcpkg, using x86-windows-static triplet). But MSVS automatically adds fmt.dll to my project's build folder because it linked dynamically. I want to compile completely static project. So, how to link statically against FMT, should I do it myself? Or, could I completely remove it as a dependency? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unless the CMake variable |
Beta Was this translation helpful? Give feedback.
Unless the CMake variable
SPDLOG_BUILD_SHARED
(orBUILD_SHARED_LIBS
) is defined, spdlog is built as a static library, so the bundled fmt is also part of the library.If you do not use the bundled fmt, you are responsible for providing the static library fmt.