summaryrefslogtreecommitdiff
path: root/share/cmake-3.16/Help/prop_tgt/UNITY_BUILD_CODE_BEFORE_INCLUDE.rst
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.16/Help/prop_tgt/UNITY_BUILD_CODE_BEFORE_INCLUDE.rst')
-rw-r--r--share/cmake-3.16/Help/prop_tgt/UNITY_BUILD_CODE_BEFORE_INCLUDE.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/share/cmake-3.16/Help/prop_tgt/UNITY_BUILD_CODE_BEFORE_INCLUDE.rst b/share/cmake-3.16/Help/prop_tgt/UNITY_BUILD_CODE_BEFORE_INCLUDE.rst
new file mode 100644
index 0000000..7ed6fa1
--- /dev/null
+++ b/share/cmake-3.16/Help/prop_tgt/UNITY_BUILD_CODE_BEFORE_INCLUDE.rst
@@ -0,0 +1,19 @@
+UNITY_BUILD_CODE_BEFORE_INCLUDE
+-------------------------------
+
+Code snippet which is included verbatim by the :prop_tgt:`UNITY_BUILD`
+feature just before every ``#include`` statement in the generated unity
+source files. For example:
+
+.. code-block:: cmake
+
+ set(before [[
+ #if !defined(NOMINMAX)
+ #define NOMINMAX
+ #endif
+ ]])
+ set_target_properties(myTarget PROPERTIES
+ UNITY_BUILD_CODE_BEFORE_INCLUDE "${before}"
+ )
+
+See also :prop_tgt:`UNITY_BUILD_CODE_AFTER_INCLUDE`.