Is it possible to automatically link static FMT or even disable it? #2442
Answered
by
tt4g
dwarfovich
asked this question in
Q&A
-
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.
Answered by
tt4g
Jul 20, 2022
Replies: 1 comment 1 reply
-
Unless the CMake variable |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dwarfovich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.