cmake/Help/prop_dir/IMPLICIT_DEPENDS_INCLUDE_TRANSFORM.rst

35 lines
932 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
----------------------------------
2019-11-11 23:01:05 +01:00
Specify ``#include`` line transforms for dependencies in a directory.
2014-08-03 19:52:23 +02:00
2019-11-11 23:01:05 +01: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
2019-11-11 23:01:05 +01: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
2019-11-11 23:01:05 +01: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 all targets within a directory.
The property value is initialized in each directory by its value in
the directory's parent.