diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-01-01 16:04:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-05 19:21:27 (GMT) |
commit | 63bbb3768d3cf87459b6b66effa8726f38cc745a (patch) | |
tree | 55bcf85e8ae41bedf013e2211c64c3f03544e653 /Help/prop_tgt | |
parent | 76b5383123daa4249c9cfffdc93727713dfad29f (diff) | |
download | CMake-63bbb3768d3cf87459b6b66effa8726f38cc745a.zip CMake-63bbb3768d3cf87459b6b66effa8726f38cc745a.tar.gz CMake-63bbb3768d3cf87459b6b66effa8726f38cc745a.tar.bz2 |
cmLocalGenerator: ignore scanned sources for unity builds
Diffstat (limited to 'Help/prop_tgt')
-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 f827a20..9d68250 100644 --- a/Help/prop_tgt/UNITY_BUILD.rst +++ b/Help/prop_tgt/UNITY_BUILD.rst @@ -64,6 +64,11 @@ a number of measures to help address such problems: :prop_sf:`INCLUDE_DIRECTORIES` source property will not be combined into a unity source. +* Any source file which is scanned for C++ module sources via + :prop_tgt:`CXX_SCAN_FOR_MODULES`, :prop_sf:`CXX_SCAN_FOR_MODULES`, or + membership of a ``CXX_MODULES`` file set will not be combined into a unity + source. See :manual:`cmake-cxxmodules(7)` for details. + * Projects can prevent an individual source file from being combined into a unity source by setting its :prop_sf:`SKIP_UNITY_BUILD_INCLUSION` source property to true. This can be a more effective way to prevent |