Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions reference/config_files/profiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ Same usage as the `replace_requires` section but in this case for `tool_requires

In this case, whatever version of ``cmake`` declared in recipes, will be replaced by the reference `cmake/3.25.2`.

.. note::

* This section should be added to the profile whose context is the one that requires the tool, i.e., if the
tool is required in the host context, then it should be added to the host profile, so that the requirement
itself can be replaced.


.. _reference_config_files_profiles_platform_requires:

Expand Down Expand Up @@ -540,9 +546,13 @@ declaration:
Build requirements
cmake/3.24.2 - Platform

Note that if the ``platform_tool_requires`` declared **does not make a strict match** with the ``tool_requires`` one (version or
version range), then Conan will try to bring them remotely or locally as usual.
.. note::

* If the ``platform_tool_requires`` declared **does not make a strict match** with the ``tool_requires`` one (version or
version range), then Conan will try to bring them remotely or locally as usual.
* This section should be added to the profile whose context is the one that requires the tool, i.e., if the
tool is required in the host context, then it should be added to the host profile, so that the requirement
itself can be replaced by the platform one.

.. _reference_config_files_profiles_rendering:

Expand Down