summaryrefslogtreecommitdiffstats
path: root/Help/manual
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/manual
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/manual')
-rw-r--r--Help/manual/cmake-cxxmodules.7.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/manual/cmake-cxxmodules.7.rst b/Help/manual/cmake-cxxmodules.7.rst
index b4c9cf1..3ee6645 100644
--- a/Help/manual/cmake-cxxmodules.7.rst
+++ b/Help/manual/cmake-cxxmodules.7.rst
@@ -30,6 +30,10 @@ following queries. The first query that provides a yes/no answer is used.
- Otherwise, the source file will be scanned if the compiler and generator
support scanning. See policy :policy:`CMP0155`.
+Note that any scanned source will be excluded from any unity build (see
+:prop_tgt:`UNITY_BUILD`) because module-related statements can only happen at
+one place within a C++ translation unit.
+
Compiler Support
================