Skip to content
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

[question] build_requires/tool_requires is optimized out even if tools.graph:skip_binaries=False? #17597

Open
1 task done
harsszegi opened this issue Jan 18, 2025 · 0 comments

Comments

@harsszegi
Copy link

harsszegi commented 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?

  • I've read the CONTRIBUTING guide
@harsszegi 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant