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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers