cmVisualStudio10TargetGenerator: use language extension for objects

See: #27552
This commit is contained in:
Ben Boeckel
2026-02-04 12:07:53 -05:00
parent 3b9cd510d7
commit e4f6701ad4
+4 -1
View File
@@ -2746,7 +2746,10 @@ void cmVisualStudio10TargetGenerator::WriteAllSources(Elem& e0)
customObjectName = this->GeneratorTarget->GetObjectName(si.Source);
}
} else {
customObjectName = cmStrCat(std::move(customObjectName), ".obj");
customObjectName =
cmStrCat(std::move(customObjectName),
this->GlobalGenerator->GetLanguageOutputExtension(
si.Source->GetLanguage()));
}
if (!customObjectName.empty()) {
std::string outputName = "ObjectFileName";