Skip to content

Commit

Permalink
adding build_requires to MSBuildDeps (#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Oct 6, 2021
1 parent 20677d7 commit 1ae385b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions reference/conanfile/tools/microsoft.rst
Expand Up @@ -128,10 +128,11 @@ dependencies will be translated to properties files:
host context: all regular ``requires``, plus the ``build_requires`` that are in the host context,
for example test frameworks as ``gtest`` or ``catch``.
- All transitive ``requires`` of those direct dependencies (all in the host context)

Then, the ``build_requires`` of build context (like ``cmake`` packages as build_requires), plus the
transitive ``build_requires`` (irrespective of the context) are not translated to properties files,
as they shouldn't be necessary for the build.
- Build requires, in the build context, that is, application and executables that run in the build
machine irrespective of the destination platform, are added exclusively to the ``<ExecutablePath>``
property, taking the value from ``$(Conan{{name}}BinaryDirectories)`` defined properties. This
allows to define custom build commands, invoke code generation tools, with the ``<CustomBuild>`` and
``<Command>`` elements.


MSBuildToolchain
Expand Down

0 comments on commit 1ae385b

Please sign in to comment.