View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015339CMakeCMakepublic2015-01-07 08:462015-06-01 08:38
ReporterPaweÅ‚ Stankowski 
Assigned ToStephen Kelly 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*nixOS Version
Product Version 
Target VersionFixed in Version 
Summary0015339: CXX_STANDARD does not support C++03 and C++14
DescriptionCXX_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).
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0037653)
Stephen Kelly (developer)
2015-01-08 14:01

The '03' dialects are aliases for the '98' dialects. We don't need to alias it in CMake too I think.

 https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html [^]

CMake already knows the features of C++14

 http://www.cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html [^]

but the CXX_STANDARD target property documentation did not mention it. Fixed in

 Help: Document valid 14 value for CXX_STANDARD. (0015339)
 http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=72a0d6df [^]

I think we should wait to get more experience/feedback on the CMake compile features feature, and wait for more regarding the content of C++17 before adding features described in it.
(0038832)
Robert Maynard (manager)
2015-06-01 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-01-07 08:46 Paweł Stankowski New Issue
2015-01-08 12:46 Brad King Severity tweak => feature
2015-01-08 12:46 Brad King Status new => acknowledged
2015-01-08 14:01 Stephen Kelly Note Added: 0037653
2015-01-08 14:01 Stephen Kelly Status acknowledged => resolved
2015-01-08 14:01 Stephen Kelly Resolution open => fixed
2015-01-08 14:01 Stephen Kelly Assigned To => Stephen Kelly
2015-06-01 08:38 Robert Maynard Note Added: 0038832
2015-06-01 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team