You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(NOT SPDLOG_USE_STD_FORMAT AND NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
install(DIRECTORY include/${PROJECT_NAME}/fmt/bundled/
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/fmt/bundled/")
endif()
The text was updated successfully, but these errors were encountered:
I would imagine this is intended, yes. For the sake of Conan, we want to always either use Conan's fmt, or std::format. Allowing use of the bundled fmt could cause problems if there are other fmts in the dependency graph.
I would imagine this is intended, yes. For the sake of Conan, we want to always either use Conan's fmt, or std::format. Allowing use of the bundled fmt could cause problems if there are other fmts in the dependency graph.
Correct, and also it gives not the control the dependencies graph, but also allows using different fmt version.
The most important I would say is having visibility in the dependencies graph. For instance, you can have a conanfile.txt, where you have both fmt and spdlog listed, and a third package that needs fmt as well. Using Conan fmt package, will give the change to use the very same version for these 3 packages. Otherwise, using the vendorized version available in spdlog may break when consuming, as that fmt version may not be compatible with the fmt Conan package, causing symbols conflicts, resulting in an incompatible ABI.
@andreprat Please, specify if are facing an error or failure when using the spdlog with fmt Conan package.
The settings from the conanfile.py seem to be contradicting and not enabling the install of the fmt bundled inside spdlog
Is this intended?
conan-center-index/recipes/spdlog/all/conanfile.py
Lines 125 to 128 in 8cf9b27
In spdlog package CMakeLists.txt:
https://github.com/gabime/spdlog/blob/7e635fca68d014934b4af8a1cf874f63989352b7/CMakeLists.txt#L320-L323
The text was updated successfully, but these errors were encountered: