Skip to content

Commit

Permalink
settings.yml doc: msvc is autodetected as of conan 1.40.0 (#2360)
Browse files Browse the repository at this point in the history
* msvc is autodetected as of conan 1.40.0

conan-io/conan#9504
https://github.com/conan-io/conan/blame/5ae30ef788539cb00d54389e5bc7c8762e43ee1a/conans/client/conf/detect.py#L231

* clarify that autodetect only happens in MSVC 2022
  • Loading branch information
jmarrec committed Jan 17, 2022
1 parent c22e0ff commit 5cf0d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/config_files/settings.yml.rst
Expand Up @@ -173,7 +173,7 @@ The new ``msvc`` compiler is a new, **experimental** one, that is intended to de
- At the moment it implements a ``compatible_packages`` fallback to Visual Studio compiled packages, that is, previous existing binaries
compiled with ``settings.compiler="Visual Studio"`` can be used for the ``msvc`` compiler if no binaries exist for it yet.
This behavior can be opted-out with ``core.package_id:msvc_visual_incompatible`` :ref:`global_conf` configuration.
- It is not detected by the profile auto-detect, it needs to explicitly be defined in profiles.
- Starting in conan 1.40.0 **and** if using Visual Studio 2022, ``msvc`` is detected by the profile auto-detect. Before 1.40.0 or using an older Visual Studio, it needs to be explicitly defined in profiles.

When using the ``msvc`` compiler, the Visual Studio toolset version (the actual ``vcvars`` activation and ``MSBuild`` location) will be
defined by the default provide of that compiler version:
Expand Down

0 comments on commit 5cf0d3c

Please sign in to comment.