conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.25k stars 980 forks source link

[feature] Consider having `cppstd_flag` tool split to also be able to pass the compiler.cppstd value directly #16533

Closed AbrilRBS closed 4 months ago

AbrilRBS commented 4 months ago

What is your suggestion?

We have a cppstd_flag function that gives you the flag based on your compiler, but some recipes might have a need (https://github.com/conan-io/conan-center-index/pull/24423/ for example) to get the flag for a different cppstd other than the one in compiler.cppstd.

We should think if having foobar(compiler, cppstd) is a valid use-case worth supporting

Have you read the CONTRIBUTING guide?

AbrilRBS commented 4 months ago

We think that having this for Conan 2 would be counterproductive