From fa9a72a788ee5b1d8f1aa6dd7d19db3e118b8939 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 11 Dec 2023 07:53:13 -0500 Subject: cmLocalGenerator: disable C++ module scanning for copied PCH sources --- Source/cmLocalGenerator.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index caac535..a3003bd 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2928,6 +2928,7 @@ void cmLocalGenerator::CopyPchCompilePdb( } else { cc->SetOutputs(outputs); cmSourceFile* copy_rule = this->AddCustomCommandToOutput(std::move(cc)); + copy_rule->SetProperty("CXX_SCAN_FOR_MODULES", "0"); if (copy_rule) { target->AddSource(copy_rule->ResolveFullPath()); -- cgit v0.12