cmLocalGenerator: disable C++ module scanning for copied PCH sources

This commit is contained in:
Ben Boeckel
2023-12-11 07:53:13 -05:00
parent e5dce1a37e
commit fa9a72a788

View File

@@ -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());