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

This commit is contained in:
Ben Boeckel
2023-12-11 07:54:03 -05:00
parent 9e19a61ddb
commit 91b7bf59a7

View File

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