SunPro-CXX-FeatureTests.cmake 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Based on GNU 4.8.2
  2. # https://docs.oracle.com/cd/E37069_01/html/E37071/gncix.html
  3. # https://docs.oracle.com/cd/E77782_01/html/E77784/gkeza.html
  4. # Reference: http://gcc.gnu.org/projects/cxx0x.html
  5. set(_cmake_oldestSupported "__SUNPRO_CC >= 0x5130")
  6. set(SolarisStudio126_CXX14 "(__SUNPRO_CC >= 0x5150) && __cplusplus >= 201402L")
  7. set(_cmake_feature_test_cxx_aggregate_default_initializers "${SolarisStudio126_CXX14}")
  8. set(_cmake_feature_test_cxx_digit_separators "${SolarisStudio126_CXX14}")
  9. set(_cmake_feature_test_cxx_generic_lambdas "${SolarisStudio126_CXX14}")
  10. set(_cmake_feature_test_cxx_lambda_init_captures "${SolarisStudio126_CXX14}")
  11. set(_cmake_feature_test_cxx_return_type_deduction "${SolarisStudio126_CXX14}")
  12. set(_cmake_feature_test_cxx_variable_templates "${SolarisStudio126_CXX14}")
  13. set(SolarisStudio126_CXX11 "(__SUNPRO_CC >= 0x5150) && __cplusplus >= 201103L")
  14. set(_cmake_feature_test_cxx_decltype_auto "${SolarisStudio126_CXX11}")
  15. set(SolarisStudio125_CXX11 "(__SUNPRO_CC >= 0x5140) && __cplusplus >= 201103L")
  16. set(_cmake_feature_test_cxx_binary_literals "${SolarisStudio125_CXX11}")
  17. set(_cmake_feature_test_cxx_reference_qualified_functions "${SolarisStudio125_CXX11}")
  18. set(SolarisStudio124_CXX11 "(__SUNPRO_CC >= 0x5130) && __cplusplus >= 201103L")
  19. set(_cmake_feature_test_cxx_alignas "${SolarisStudio124_CXX11}")
  20. set(_cmake_feature_test_cxx_alignof "${SolarisStudio124_CXX11}")
  21. set(_cmake_feature_test_cxx_attributes "${SolarisStudio124_CXX11}")
  22. set(_cmake_feature_test_cxx_inheriting_constructors "${SolarisStudio124_CXX11}")
  23. set(_cmake_feature_test_cxx_thread_local "${SolarisStudio124_CXX11}")
  24. set(_cmake_feature_test_cxx_alias_templates "${SolarisStudio124_CXX11}")
  25. set(_cmake_feature_test_cxx_delegating_constructors "${SolarisStudio124_CXX11}")
  26. set(_cmake_feature_test_cxx_extended_friend_declarations "${SolarisStudio124_CXX11}")
  27. set(_cmake_feature_test_cxx_final "${SolarisStudio124_CXX11}")
  28. set(_cmake_feature_test_cxx_noexcept "${SolarisStudio124_CXX11}")
  29. set(_cmake_feature_test_cxx_nonstatic_member_init "${SolarisStudio124_CXX11}")
  30. set(_cmake_feature_test_cxx_override "${SolarisStudio124_CXX11}")
  31. set(_cmake_feature_test_cxx_constexpr "${SolarisStudio124_CXX11}")
  32. set(_cmake_feature_test_cxx_defaulted_move_initializers "${SolarisStudio124_CXX11}")
  33. set(_cmake_feature_test_cxx_enum_forward_declarations "${SolarisStudio124_CXX11}")
  34. set(_cmake_feature_test_cxx_nullptr "${SolarisStudio124_CXX11}")
  35. set(_cmake_feature_test_cxx_range_for "${SolarisStudio124_CXX11}")
  36. set(_cmake_feature_test_cxx_unrestricted_unions "${SolarisStudio124_CXX11}")
  37. set(_cmake_feature_test_cxx_explicit_conversions "${SolarisStudio124_CXX11}")
  38. set(_cmake_feature_test_cxx_lambdas "${SolarisStudio124_CXX11}")
  39. set(_cmake_feature_test_cxx_local_type_template_args "${SolarisStudio124_CXX11}")
  40. set(_cmake_feature_test_cxx_raw_string_literals "${SolarisStudio124_CXX11}")
  41. set(_cmake_feature_test_cxx_auto_type "${SolarisStudio124_CXX11}")
  42. set(_cmake_feature_test_cxx_defaulted_functions "${SolarisStudio124_CXX11}")
  43. set(_cmake_feature_test_cxx_deleted_functions "${SolarisStudio124_CXX11}")
  44. set(_cmake_feature_test_cxx_generalized_initializers "${SolarisStudio124_CXX11}")
  45. set(_cmake_feature_test_cxx_inline_namespaces "${SolarisStudio124_CXX11}")
  46. set(_cmake_feature_test_cxx_sizeof_member "${SolarisStudio124_CXX11}")
  47. set(_cmake_feature_test_cxx_strong_enums "${SolarisStudio124_CXX11}")
  48. set(_cmake_feature_test_cxx_trailing_return_types "${SolarisStudio124_CXX11}")
  49. set(_cmake_feature_test_cxx_unicode_literals "${SolarisStudio124_CXX11}")
  50. set(_cmake_feature_test_cxx_uniform_initialization "${SolarisStudio124_CXX11}")
  51. set(_cmake_feature_test_cxx_variadic_templates "${SolarisStudio124_CXX11}")
  52. set(_cmake_feature_test_cxx_decltype "${SolarisStudio124_CXX11}")
  53. set(_cmake_feature_test_cxx_default_function_template_args "${SolarisStudio124_CXX11}")
  54. set(_cmake_feature_test_cxx_long_long_type "${SolarisStudio124_CXX11}")
  55. set(_cmake_feature_test_cxx_right_angle_brackets "${SolarisStudio124_CXX11}")
  56. set(_cmake_feature_test_cxx_rvalue_references "${SolarisStudio124_CXX11}")
  57. set(_cmake_feature_test_cxx_static_assert "${SolarisStudio124_CXX11}")
  58. set(_cmake_feature_test_cxx_extern_templates "${SolarisStudio124_CXX11}")
  59. set(_cmake_feature_test_cxx_func_identifier "${SolarisStudio124_CXX11}")
  60. set(_cmake_feature_test_cxx_variadic_macros "${SolarisStudio124_CXX11}")
  61. set(_cmake_feature_test_cxx_template_template_parameters "${_cmake_oldestSupported} && __cplusplus")