You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
SpaceIm
changed the title
[feature] Expose cppstd_flag function
[feature] conan v2 tools: Expose cppstd_flag function
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 thatAutotoolsToolchain
populates this attribute withcppstd_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.The text was updated successfully, but these errors were encountered: