summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/SunPro-CXX-FeatureTests.cmake
blob: e7133c153df6675f406b4b571f5e53a6b24acee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

# Based on GNU 4.8.2
# https://docs.oracle.com/cd/E37069_01/html/E37071/gncix.html
# https://docs.oracle.com/cd/E77782_01/html/E77784/gkeza.html
# Reference: http://gcc.gnu.org/projects/cxx0x.html

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}")

set(SolarisStudio125_CXX11 "(__SUNPRO_CC >= 0x5140) && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_binary_literals "${SolarisStudio125_CXX11}")
set(_cmake_feature_test_cxx_reference_qualified_functions "${SolarisStudio125_CXX11}")

set(SolarisStudio124_CXX11 "(__SUNPRO_CC >= 0x5130) && __cplusplus >= 201103L")
set(_cmake_feature_test_cxx_alignas "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_alignof "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_attributes "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_inheriting_constructors "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_thread_local "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_alias_templates "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_delegating_constructors "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_extended_friend_declarations "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_final "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_noexcept "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_nonstatic_member_init "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_override "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_constexpr "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_defaulted_move_initializers "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_enum_forward_declarations "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_nullptr "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_range_for "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_unrestricted_unions "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_explicit_conversions "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_lambdas "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_local_type_template_args "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_raw_string_literals "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_auto_type "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_defaulted_functions "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_deleted_functions "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_generalized_initializers "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_inline_namespaces "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_sizeof_member "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_strong_enums "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_trailing_return_types "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_unicode_literals "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_uniform_initialization "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_variadic_templates "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_decltype "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_default_function_template_args "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_long_long_type "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_right_angle_brackets "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_rvalue_references "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_static_assert "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_extern_templates "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_func_identifier "${SolarisStudio124_CXX11}")
set(_cmake_feature_test_cxx_variadic_macros "${SolarisStudio124_CXX11}")

set(_cmake_feature_test_cxx_template_template_parameters "${_cmake_oldestSupported} && __cplusplus")