COMPILE_FEATURES¶
This generator expression belongs to the Toolchain And Language Expressions family. See that section for related generator expressions.
Syntax¶
$<COMPILE_FEATURES:features>
Added in version 3.1.
where features is a comma-separated list. Evaluates to 1 if all of the
features are available for the 'head' target, and 0 otherwise. If this
expression is used while evaluating the link implementation of a target and if
any dependency transitively increases the required C_STANDARD or
CXX_STANDARD for the 'head' target, an error is reported. See the
cmake-compile-features(7) manual for information on compile features
and a list of supported compilers.