Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] conan v2 tools: expose a public function like tools.msvs_toolset #12605

Open
1 task done
SpaceIm opened this issue Nov 25, 2022 · 0 comments
Open
1 task done

Comments

@SpaceIm
Copy link
Contributor

SpaceIm commented Nov 25, 2022

boost recipe needs to inject toolset version. In conan v1 there is tools.msvs_toolset. In conan v2 there is no public function. The closest function suitable for cross conan v1/v2 support is a private static method of MSBuildToolchain: _msvs_toolset. Current workaround in boost recipe is get this value from MSBuildToolchain(self).toolset since it's populated with value returned by _msvs_toolset(conanfile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant