-
Notifications
You must be signed in to change notification settings - Fork 5
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
Any plans to support fmt v11 #84
Comments
Hi, there was #63 where I fixed fmt/11 build but I only tested it locally on macOS. Can you identify the root of the problem? There should be no serious incompatibilities with fmt/11, I'm pretty sure it's another MSVC quirk. |
Seems that problematic line is this:
|
Just for the record, in case if I build the library from the main branch using the MSVC 2022, I get the CMake error:
The content of the ########## 'vs_runtime' block #############
# Definition of VS runtime CMAKE_MSVC_RUNTIME_LIBRARY, from settings build_type,
# compiler.runtime, compiler.runtime_type
cmake_policy(GET CMP0091 POLICY_CMP0091)
if(NOT "${POLICY_CMP0091}" STREQUAL NEW)
message(FATAL_ERROR "The CMake policy CMP0091 must be NEW, but is '${POLICY_CMP0091}'")
endif()
message(STATUS "Conan toolchain: Setting CMAKE_MSVC_RUNTIME_LIBRARY=$<$<CONFIG:Debug>:MultiThreadedDebugDLL>")
set(CMAKE_MSVC_RUNTIME_LIBRARY "$<$<CONFIG:Debug>:MultiThreadedDebugDLL>") So, in order to solve this issue I either should:
|
Ok I will wait for the |
CMake error is weird because I have GitHub's Windows in CI and it builds just fine. https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md says that it uses Visual Studio Enterprise 2022. Even weirder is that error happens inside Conan-generated file.
As I expected, it's likely to be an MSVC bug, I work-arounded a couple of them recently (already released). Maybe
Can't you force newer version on both of them in Conan? |
Btw, probably fmtlib/fmt#4091 is the issue you're facing here. |
I tried to use |
Perfect. That was it. The issue had been fixed in The Thank you very much |
What is the CMake version used for the runner ? 3.31.2, right? |
Let me create another issue so I can close this one |
I was too fast on that.
|
I'm starting a new project and would like to use the latest versions of the sbepp and spdlog libraries. The problem is that:
sbepp/1.5.1
requiresfmt/10.2.0
spdlog/1.15.0
requiresfmt/11.0.2
In case if I force Conan to use
fmt/11.0.2
, it fails to compile the sbeppc tool:So far I've downgraded fmt to v10.2.0 and it works. But I just wonder, are there any plans to support fmt at least 11.0.2?
The text was updated successfully, but these errors were encountered: