Re: [CMake] CXX_STANDARD use latest

2017-04-16 Thread Craig Scott
Not sure if it lines up exactly with what you want, but the latest CMake release (3.8.0) allows you to specify the minimum language standard via compiler features: https://cmake.org/cmake/help/latest/manual/cmake-compile-features.7.html#requiring-language-standards On Sun, Apr 16, 2017 at 12:48

[CMake] CXX_STANDARD use latest

2017-04-15 Thread Tiago Macarios
Hi, One can require a specific CXX_STANDARD to be used, but is it possible to set a minimum and let CMake use the latest as long as it satisfies the minimum? Example code: set_property(TARGET a_lib PROPERTY CXX_STANDARD_MIN 11 PROPERTY CXX_STANDARD_REQUIRED ON PROPERTY CXX_STANDARD_L