Open prince-chrismc opened 2 years ago
Space pointed out this a a really inline with https://github.com/conan-io/conan/issues/11158#issuecomment-1252341119
but did not come up in my search so leaving traces here hopefully the next person will find it
@prince-chrismc Thank you for pointing it!
A helper like this could be very helpful for CCI recipes because currently we need to write two conditions for "msvc" and "Visual Studio" compilers based on non-trivial version mapping which Conan already knows.
Issue #11158 was resolved with introducing a new helper check_min_vs
which throws an exception so it does not help with writing conditionals in recipes. And unfortunately msvc_version_to_vs_ide_version
is not a public API. Either we need to expose msvc_version_to_vs_ide_version
or to create another helper like is_min_vs
.
check_min_vs
does not help in the situation where the library wants to know the VS version for a configure target... in this case libvpx wants to know what VS version for its arch--os--compiler triple.
https://github.com/conan-io/conan-center-index/pull/13799
So still need a msvc_version_to_vs_ide_version
, that would help.
_Originally posted by @uilianries in https://github.com/conan-io/conan-center-index/pull/13365#discussion_r996955447_
This has some useful benefits during the 2.0 migration period