← Back to context

Comment by stabbles

3 hours ago

Yeah, developers should specify what language and dialect a project is written in. In practice though, support for that in build systems is cumbersome.

For example in CMake the natural variable is CMAKE_CXX_STANDARD, but it's implemented backwards: if you set it to 14 but your compiler supports only C++11, they'll add -std=gnu++11. You have to also set CMAKE_CXX_STANDARD_REQUIRED to ON, which not man projects do. I don't think there's an easy way to say "this project requires C++14 or higher".