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] Consider porting conans.tools.cppstd_flag to Conan 2.0 #12324

Closed
1 task
uilianries opened this issue Oct 18, 2022 · 1 comment
Closed
1 task

[feature] Consider porting conans.tools.cppstd_flag to Conan 2.0 #12324

uilianries opened this issue Oct 18, 2022 · 1 comment

Comments

@uilianries
Copy link
Member

Suggestion

Port conans.tools.cppstd_flag to conan.tools.build.cppstd_flag

Why?

Some projects use a limited build script which require our manual intervention, passing all needed compiler flags, including libcxx, cppstd, build_type, fPIC, ... For those cases, we need to honor the cppstd version from the profile with what will be used by the compiler.

As a real example from CCI: https://github.com/conan-io/conan-center-index/pull/13552/files#diff-a3929dbede89f0e2d22b994ee16d101290e2d32f05767c52cc580a4edf1d950eR198

As we need to translate cppstd to the compiler flag, cppstd_flag would help us.

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

2 participants