[cmake-developers] [CMake 0015339]: CXX_STANDARD does not support C++03 and C++14

Mantis Bug Tracker mantis at public.kitware.com
Wed Jan 7 08:46:43 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15339 
====================================================================== 
Reported By:                Paweł Stankowski
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15339
Category:                   CMake
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-01-07 08:46 EST
Last Modified:              2015-01-07 08:46 EST
====================================================================== 
Summary:                    CXX_STANDARD does not support C++03 and C++14
Description: 
CXX_STANDARD support only '98' and '11', but there is also C++03 standard that
should be supported. When CXX_EXTENSIONS property is ON, "-std=gnu98" should be
used, "-std=c++03" otherwise.

C++14 standard is now finalized, so it could be added to CMake as well.
GCC supports it since 4.8, Clang has complete support in version 3.4. MSVC 2013
also supports some C++14 features, but it does not need to be asked for enabling
them.

C++17 also may be enabled in newest clang by passing "-std=c++1z" argument. Not
sure whether you are keen to standard drafts support to CMake, but you could add
it as '1z' and then remove it when c++17 is finally published. I would not use
'17' as its name, as name may be changed (C++11 was initialially called c++0x,
because it was supposed to be published before 2010).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-01-07 08:46 Paweł StankowskiNew Issue                                    
======================================================================



More information about the cmake-developers mailing list