cmake/Help/prop_tgt/IMPLICIT_DEPENDS_INCLUDE_TRANSFORM.rst

33 lines
836 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
----------------------------------
2021-09-14 00:13:48 +02:00
Specify ``#include`` line transforms for dependencies in a target.
2014-08-03 19:52:23 +02:00
2021-09-14 00:13:48 +02:00
This property specifies rules to transform macro-like ``#include`` lines
2014-08-03 19:52:23 +02:00
during implicit dependency scanning of C and C++ source files. The
list of rules must be semicolon-separated with each entry of the form
2021-09-14 00:13:48 +02:00
``A_MACRO(%)=value-with-%`` (the ``%`` must be literal). During dependency
scanning occurrences of ``A_MACRO(...)`` on ``#include`` lines will be
2014-08-03 19:52:23 +02:00
replaced by the value given with the macro argument substituted for
2021-09-14 00:13:48 +02:00
``%``. For example, the entry
2014-08-03 19:52:23 +02:00
::
MYDIR(%)=<mydir/%>
will convert lines of the form
::
#include MYDIR(myheader.h)
to
::
#include <mydir/myheader.h>
allowing the dependency to be followed.
This property applies to sources in the target on which it is set.