Closed filippobistaffa closed 2 weeks ago
I am not sure, you might want to check the CMake docs. In general, the header-only config is not recommended and there are even fewer reason to use it with FetchConfig
.
In general, the header-only config is not recommended and there are even fewer reason to use it with
FetchConfig
.
Do you mean using fmt::fmt-header-only
in CMake or using #define FMT_HEADER_ONLY
? Also, why is it "not recommended" (not that I don't believe you, just curious if there's any technical drawback).
Do you mean using
fmt::fmt-header-only
in CMake or using#define FMT_HEADER_ONLY
?
Both.
Header-only is generally bad for compile times, see e.g. https://stackoverflow.com/a/68020236/471164.
My goal is to avoid compiling
libfmt.a
with the followingCMakeList.txt
andtest.cpp
Is it possible to achieve this? What I'm getting instead is the following: