Browse Source

cmGlobalXCodeGenerator: disable C++ module scanning for force-lang files

Ben Boeckel 1 year ago
parent
commit
91b7bf59a7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmGlobalXCodeGenerator.cxx

+ 1 - 0
Source/cmGlobalXCodeGenerator.cxx

@@ -1697,6 +1697,7 @@ void cmGlobalXCodeGenerator::ForceLinkerLanguage(cmGeneratorTarget* gtgt)
   }
   if (cmSourceFile* sf = mf->GetOrCreateSource(fname)) {
     sf->SetProperty("LANGUAGE", llang);
+    sf->SetProperty("CXX_SCAN_FOR_MODULES", "0");
     gtgt->AddSource(fname);
   }
 }