diff options
| author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-12-11 12:53:40 (GMT) |
|---|---|---|
| committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-12-11 12:53:40 (GMT) |
| commit | 9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee (patch) | |
| tree | 8d7947f592cdb1bb871c9c724d32a0d939e7f2ff | |
| parent | fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939 (diff) | |
| download | CMake-9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee.zip CMake-9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee.tar.gz CMake-9e19a61ddb42208ea9ff14bc5ec1f5faaa0bdeee.tar.bz2 | |
cmLocalGenerator: disable C++ module scanning for unity sources
| -rw-r--r-- | Source/cmLocalGenerator.cxx | 1 |
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>>"); |
