Browse Source

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

Ben Boeckel 1 year ago
parent
commit
fa9a72a788
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmLocalGenerator.cxx

+ 1 - 0
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());