[cmake-developers] Use of C++11 in CMake's own source code

Brad King brad.king at kitware.com
Tue Sep 20 11:30:44 EDT 2016


On 09/20/2016 11:12 AM, Craig Scott wrote:
> some C++11 stuff in at least one recent merge request

We allow C++14 in code guarded by HAVE_SERVER_MODE because that is
a new/optional feature that doesn't have to work on all platforms yet.

Everything not guarded by HAVE_SERVER_MODE needs to be able to compile
in all language levels C++98 and above.  We have CM_NULLPTR and similar
macros to enable C++11 safety checks when building at that level or
above, but they fall back to C++98-compatible code too.

-Brad



More information about the cmake-developers mailing list