diff options
author | Stephen Kelly <steveire@gmail.com> | 2020-05-23 17:16:49 +0100 |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-12-15 22:26:09 +1100 |
commit | 0fe9c40494be0e15e6603a245f181bc74d8cf481 (patch) | |
tree | be46d0672e9a1c867eb8cffda5522e1aba6b477b /Help/prop_tgt/UNITY_BUILD.rst | |
parent | 82b25be80afc92da045d04a37e121a3fa97392c0 (diff) | |
download | cmake-0fe9c40494be0e15e6603a245f181bc74d8cf481.tar.gz |
Unity Build: Add option for generating per-file unique id
Fixes: #21477
Diffstat (limited to 'Help/prop_tgt/UNITY_BUILD.rst')
-rw-r--r-- | Help/prop_tgt/UNITY_BUILD.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/prop_tgt/UNITY_BUILD.rst b/Help/prop_tgt/UNITY_BUILD.rst index 04cede61ef..f827a20a19 100644 --- a/Help/prop_tgt/UNITY_BUILD.rst +++ b/Help/prop_tgt/UNITY_BUILD.rst @@ -70,6 +70,11 @@ a number of measures to help address such problems: problems with specific files than disabling unity builds for an entire target. +* Projects can set :prop_tgt:`UNITY_BUILD_UNIQUE_ID` to cause a valid + C-identifier to be generated which is unique per file in a unity + build. This can be used to avoid problems with anonymous namespaces + in unity builds. + * The :prop_tgt:`UNITY_BUILD_CODE_BEFORE_INCLUDE` and :prop_tgt:`UNITY_BUILD_CODE_AFTER_INCLUDE` target properties can be used to inject code into the unity source files before and after every |