[cmake-developers] how does target_compile_features() test the c++11 conformance?
Claus Klein
claus.klein at arcormail.de
Thu Jun 29 16:09:52 EDT 2017
Hi,
I am using cmake V3.8.2 and VS 2013 and work with a c++11 library.
Wenn I use this, no error message is seen:
target_compile_features(${targetname} PRIVATE cxx_std_11) # OK
But wenn I use this most features are missing:
target_compile_features(${targetname} PRIVATE
cxx_contextual_conversions # OK
cxx_final # OK
cxx_override # OK
cxx_variadic_templates # OK
#FIXME: missing features at MS VS12 2013:
cxx_aggregate_default_initializers
cxx_attribute_deprecated
cxx_binary_literals
cxx_constexpr
cxx_decltype_auto
cxx_decltype_incomplete_return_types
cxx_defaulted_move_initializers
cxx_digit_separators
cxx_generic_lambdas
cxx_lambda_init_captures
cxx_noexcept
cxx_relaxed_constexpr
cxx_return_type_deduction
cxx_variable_templates
)
with regards
Claus
More information about the cmake-developers
mailing list