List of C++ features known to this version of CMake.
The features listed in this global property may be known to be available to the C++ compiler. If the feature is available with the C++ compiler, it will be listed in the CMAKE_CXX_COMPILE_FEATURES
variable.
The features listed here may be used with the target_compile_features()
command. See the cmake-compile-features(7)
manual for information on compile features and a list of supported compilers.
The features known to this version of CMake are:
cxx_std_98
cxx_std_11
cxx_std_14
cxx_std_17
cxx_std_20
cxx_aggregate_default_initializers
cxx_alias_templates
cxx_alignas
alignas
, as defined in N2341.cxx_alignof
alignof
, as defined in N2341.cxx_attributes
cxx_attribute_deprecated
[[deprecated]]
attribute, as defined in N3760.cxx_auto_type
cxx_binary_literals
cxx_constexpr
cxx_contextual_conversions
cxx_decltype_incomplete_return_types
cxx_decltype
cxx_decltype_auto
decltype(auto)
semantics, as defined in N3638.cxx_default_function_template_args
cxx_defaulted_functions
cxx_defaulted_move_initializers
cxx_delegating_constructors
cxx_deleted_functions
cxx_digit_separators
cxx_enum_forward_declarations
cxx_explicit_conversions
cxx_extended_friend_declarations
cxx_extern_templates
cxx_final
final
keyword, as defined in N2928, N3206 and N3272.cxx_func_identifier
__func__
identifier, as defined in N2340.cxx_generalized_initializers
cxx_generic_lambdas
cxx_inheriting_constructors
cxx_inline_namespaces
cxx_lambdas
cxx_lambda_init_captures
cxx_local_type_template_args
cxx_long_long_type
long long
type, as defined in N1811.cxx_noexcept
cxx_nonstatic_member_init
cxx_nullptr
cxx_override
override
keyword, as defined in N2928, N3206 and N3272.cxx_range_for
cxx_raw_string_literals
cxx_reference_qualified_functions
cxx_relaxed_constexpr
cxx_return_type_deduction
cxx_right_angle_brackets
cxx_rvalue_references
cxx_sizeof_member
cxx_static_assert
cxx_strong_enums
cxx_thread_local
cxx_trailing_return_types
cxx_unicode_literals
cxx_uniform_initialization
cxx_unrestricted_unions
cxx_user_literals
cxx_variable_templates
cxx_variadic_macros
cxx_variadic_templates
cxx_template_template_parameters
ISO/IEC 14882:1998
.
© 2000–2019 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.15/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html