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 cppstd_flag function #12603

Closed
1 task done
SpaceIm opened this issue Nov 24, 2022 · 0 comments · Fixed by #15710
Closed
1 task done

[feature] conan v2 tools: Expose cppstd_flag function #12603

SpaceIm opened this issue Nov 24, 2022 · 0 comments · Fixed by #15710

Comments

@SpaceIm
Copy link
Contributor

SpaceIm commented Nov 24, 2022

This helper is useful in recipes relying on unusual build systems, in order to inject C++ standard flag in a robust way. It's used in boost recipe. In conan-io/conan-center-index#14415, I had to rely on AutotoolsToolchain(self).cppstd because I know from conan source code that AutotoolsToolchain populates this attribute with cppstd_flag(conanfile) when an AutotoolsToolchain instance is created.
Obviously it's not very elegant, weird because it's called outside of generate() actually, and even confusing since boost is not built with Autotools.

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

Successfully merging a pull request may close this issue.

3 participants