Skip to content

WIP: Move language standard options to the beginning of compiler flags

Brad King requested to merge brad.king/cmake:lang-flag-order into master

Through CXX_STANDARD and COMPILE_FEATURES target properties CMake determines what -std= flag to pass to the compiler. Move this flag to the beginning of the command line so that flags provided by users can override it (e.g. to use a standard flag newer than CMake knows).

Fixes: #16608

Merge request reports