summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-12-11 12:53:40 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-12-11 12:53:40 (GMT)
commit9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee (patch)
tree8d7947f592cdb1bb871c9c724d32a0d939e7f2ff /Source/cmLocalGenerator.cxx
parentfa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939 (diff)
downloadCMake-9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee.zip
CMake-9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee.tar.gz
CMake-9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee.tar.bz2
cmLocalGenerator: disable C++ module scanning for unity sources
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index a3003bd..168cd41 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -3196,6 +3196,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target)
target->AddSource(file.Path, true);
unity->SetProperty("SKIP_UNITY_BUILD_INCLUSION", "ON");
unity->SetProperty("UNITY_SOURCE_FILE", file.Path);
+ unity->SetProperty("CXX_SCAN_FOR_MODULES", "0");
if (file.PerConfig) {
unity->SetProperty("COMPILE_DEFINITIONS",
"CMAKE_UNITY_CONFIG_$<UPPER_CASE:$<CONFIG>>");