summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-01-10 15:14:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-01-10 15:15:46 (GMT)
commit446abdf324621fe7c0df14301b418cd5ceddf0f5 (patch)
tree7fd077dfcb2f071d4a96fe99cdcfb2b324098bed /Help/prop_tgt
parent8c4f0bf6a3c45d7442b851dd3e9ee28ced2e730f (diff)
parent63bbb3768d3cf87459b6b66effa8726f38cc745a (diff)
downloadCMake-446abdf324621fe7c0df14301b418cd5ceddf0f5.zip
CMake-446abdf324621fe7c0df14301b418cd5ceddf0f5.tar.gz
CMake-446abdf324621fe7c0df14301b418cd5ceddf0f5.tar.bz2
Merge topic 'cxxmodules-no-unity'
63bbb3768d cmLocalGenerator: ignore scanned sources for unity builds 76b5383123 cmGlobalGenerator: add unity sources after computing target compile features 7fc2a83fe6 Tests/CXXModules: add a test with unity build support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9118
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/UNITY_BUILD.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/prop_tgt/UNITY_BUILD.rst b/Help/prop_tgt/UNITY_BUILD.rst
index 52f4714..577b0c9 100644
--- a/Help/prop_tgt/UNITY_BUILD.rst
+++ b/Help/prop_tgt/UNITY_BUILD.rst
@@ -76,6 +76,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