-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set minimum version of fmt to 5.3.0 #1525
Conversation
I don't think this would work for fmt 6.x.x versions (incompatible with 5 according to cmake) |
I can confirm that it will work. I was confused, too :-) My test using CMake version 3.16.3: I used CMake to generate the CMake target of
The generated
Now I'm able to consume this CMake target (Windows):
Works fine with As a test I switched to
|
This is indeed confusing. This is what cmake docs say:
So I still not sure what this means :( |
@gabime Yeah I didn't find any understandable description of how CMake handles these versions and how to apply rules like According to one of our users |
snip from fmt-config-version.cmake
|
@Montellese Not sure but 5.2.0 might be ok |
I just went through the
So I'm assuming that the minimum version is |
The used fmt::fmt target has been introduced with fmt 5.0.0.
35c035e
to
3e8be64
Compare
Good to know. |
The used
fmt::fmt
target has been introduced withfmt 5.0.0
.Without this
spdlog
also picks up older versions offmt
like4.0.0
on Ubuntu 18.04 throughlibfmt-dev
or even older versions on Ubuntu 16.04 throughlibfmt3-dev
. Compilation fails but the error message is not straight forward at all.I'm not sure if the version should be higher depending on what features of
fmt
are used withinspdlog
.