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
our company packages FMT + SPDLOG via their normal CMake packaging logic, e.g. cmake --install is used to create the package content. SPDLOG has a regular requires() to FMT.
When I compile SPDLOG's test_package, I can clearly see within dependencies FMT, however if I go one level up, and that package consumes SPDLOG via build_requires (or tool_requires, doesn't matter) that doesn't work anymore, FMT is left out, only SPDLOG is pulled in.
However if I pull in SPDLOG via regular requires, it works fine.
Why we use SPDLOG a build_requies / tool_requires in the given package is that SPDLOG is only used when the given package is compiled with unit tests.
Why does build_requires / tool_requires behave differently compared to requires?
Thanks,
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
harsszegi
changed the title
[question] build_requires is optimized out even if tools.graph:skip_binaries=False?
[question] build_requires/tool_requires is optimized out even if tools.graph:skip_binaries=False?
Jan 18, 2025
Hi,
our company packages FMT + SPDLOG via their normal CMake packaging logic, e.g. cmake --install is used to create the package content. SPDLOG has a regular requires() to FMT.
When I compile SPDLOG's test_package, I can clearly see within dependencies FMT, however if I go one level up, and that package consumes SPDLOG via build_requires (or tool_requires, doesn't matter) that doesn't work anymore, FMT is left out, only SPDLOG is pulled in.
However if I pull in SPDLOG via regular requires, it works fine.
Why we use SPDLOG a build_requies / tool_requires in the given package is that SPDLOG is only used when the given package is compiled with unit tests.
Why does build_requires / tool_requires behave differently compared to requires?
Thanks,
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: