-
Notifications
You must be signed in to change notification settings - Fork 377
Description
What is your question?
Should platform_tool_requires tools be added to the build profile, the host profile, or both?
In conan 2.17, if you added e.g. cmake/3.24.2 to the build profile, then it would show up under both the build and host profiles,
======== Input profiles ========
Profile host:
[platform_tool_requires]
cmake/3.24.2
Profile build:
[platform_tool_requires]
cmake/3.24.2
which is a bit strange, but nonetheless everything worked (recipes could find and use cmake).
In conan 2.18, doing the same thing causes it to only show up in the build profile:
======== Input profiles ========
Profile host:
Profile build:
[platform_tool_requires]
cmake/3.24.2
as expected, but it does not work (recipes cannot find or use cmake).
On the other hand, adding it to the host profile does work - unexpectedly, since cmake is a property of the build system not the host system.
So is this behaviour really correct, and intended?
Note the documentation (linked above) says
Given this situation, it could make sense to want to use your already installed CMake version, so it’s enough to declare it as a platform_tool_requires in your profile:
but never says which profile (when cross-compiling), so whatever the correct answer is, it should also be clarified in the documentation.
Have you read the CONTRIBUTING guide?
- I've read the CONTRIBUTING guide