cmake/Help/prop_tgt/UNITY_BUILD_CODE_AFTER_INCLUDE.rst

22 lines
502 B
ReStructuredText
Raw Normal View History

2020-02-01 23:06:01 +01:00
UNITY_BUILD_CODE_AFTER_INCLUDE
------------------------------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.16
2020-02-01 23:06:01 +01:00
Code snippet which is included verbatim by the :prop_tgt:`UNITY_BUILD`
feature just after every ``#include`` statement in the generated unity
source files. For example:
.. code-block:: cmake
set(after [[
#if defined(NOMINMAX)
#undef NOMINMAX
#endif
]])
set_target_properties(myTarget PROPERTIES
UNITY_BUILD_CODE_AFTER_INCLUDE "${after}"
)
See also :prop_tgt:`UNITY_BUILD_CODE_BEFORE_INCLUDE`.