conan-io / conan

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

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

Closed RubenRBS closed 3 days ago

RubenRBS commented 6 days 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?

RubenRBS commented 3 days ago

We think that having this for Conan 2 would be counterproductive