summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/INTERFACE_COMPILE_FEATURES.rst
blob: 7abdecbdbd5400a9178ff8200c31936a6dbb17e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
INTERFACE_COMPILE_FEATURES
--------------------------

List of public compile requirements for a library.

Targets may populate this property to publish the compiler features
required to compile against the headers for the target.  Consuming
targets can add entries to their own :prop_tgt:`COMPILE_FEATURES`
property such as ``$<TARGET_PROPERTY:foo,INTERFACE_COMPILE_FEATURES>``
to require the features specified in the interface of ``foo``.

Contents of ``INTERFACE_COMPILE_FEATURES`` may use "generator expressions"
with the syntax ``$<...>``.  See the :manual:`cmake-generator-expressions(7)`
manual for available expressions.  See the
:manual:`cmake-compile-features(7)` manual for information on compile
features.