summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/SunPro-CXX-FeatureTests.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-04-19 12:44:51 (GMT)
committerBrad King <brad.king@kitware.com>2019-04-19 13:14:00 (GMT)
commit66f3f11af5ecea17680077c39c6e0fe7738ca34a (patch)
tree80a11d5de5e85d34e3141e0c234a718469a6a820 /Modules/Compiler/SunPro-CXX-FeatureTests.cmake
parentbf64e50da4a36e17ea0e27a45a5277226e123210 (diff)
downloadCMake-66f3f11af5ecea17680077c39c6e0fe7738ca34a.zip
CMake-66f3f11af5ecea17680077c39c6e0fe7738ca34a.tar.gz
CMake-66f3f11af5ecea17680077c39c6e0fe7738ca34a.tar.bz2
SunPro: Record support for C++14 features by SunPro 5.{14,15}
SunPro 5.15 supports `-std=c++14` and several C++14 features. SunPro 5.14 accepts `-std=c++14` but does not update its definition of `__cplusplus` or any other macro to distinguish it from `-std=c++11`, so we need to blacklist a couple features that do work but that we cannot report for that version. We can still support `cxx_std_14`. Co-Author: Robert Maynard <robert.maynard@kitware.com>
Diffstat (limited to 'Modules/Compiler/SunPro-CXX-FeatureTests.cmake')
-rw-r--r--Modules/Compiler/SunPro-CXX-FeatureTests.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro-CXX-FeatureTests.cmake b/Modules/Compiler/SunPro-CXX-FeatureTests.cmake
index 279d875..e7133c1 100644
--- a/Modules/Compiler/SunPro-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/SunPro-CXX-FeatureTests.cmake
@@ -6,6 +6,14 @@
set(_cmake_oldestSupported "__SUNPRO_CC >= 0x5130")
+set(SolarisStudio126_CXX14 "(__SUNPRO_CC >= 0x5150) && __cplusplus >= 201402L")
+set(_cmake_feature_test_cxx_aggregate_default_initializers "${SolarisStudio126_CXX14}")
+set(_cmake_feature_test_cxx_digit_separators "${SolarisStudio126_CXX14}")
+set(_cmake_feature_test_cxx_generic_lambdas "${SolarisStudio126_CXX14}")
+set(_cmake_feature_test_cxx_lambda_init_captures "${SolarisStudio126_CXX14}")
+set(_cmake_feature_test_cxx_return_type_deduction "${SolarisStudio126_CXX14}")
+set(_cmake_feature_test_cxx_variable_templates "${SolarisStudio126_CXX14}")
+
set(SolarisStudio126_CXX11 "(__SUNPRO_CC >= 0x5150) && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_decltype_auto "${SolarisStudio126_CXX11}")