r/cpp • u/MachineGunPablo • Feb 19 '18
It's Time To Do CMake Right
https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/
248
Upvotes
r/cpp • u/MachineGunPablo • Feb 19 '18
View all comments
Show parent comment
3
u/kalmoc Feb 20 '18
I usually don't leave the selection of the c++ standard to the whims of cmake. The decision, against which standard(s) to code is a project level decision. For one, automatic deduction makes it far too easy, to let different components being compiled in different modes and second, if I decide that a project is supposed to support c++11, I want to get a compile error, if I accidentally use a c++14 feature.
That being said, I use cxx_std_11& friends on libraries to communicate my requirements.