MCPcopy Create free account
hub / github.com/Kitware/CMake / OutputObjects

Method OutputObjects

Source/cmLocalVisualStudio7Generator.cxx:1318–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316}
1317
1318void cmLocalVisualStudio7GeneratorInternals::OutputObjects(
1319 std::ostream& fout, cmGeneratorTarget* gt, std::string const& configName,
1320 char const* isep)
1321{
1322 // VS < 8 does not support per-config source locations so we
1323 // list object library content on the link line instead.
1324 cmLocalVisualStudio7Generator* lg = this->LocalGenerator;
1325
1326 std::vector<cmSourceFile const*> objs;
1327 gt->GetExternalObjects(objs, configName);
1328
1329 char const* sep = isep ? isep : "";
1330 for (cmSourceFile const* obj : objs) {
1331 if (!obj->GetObjectLibrary().empty()) {
1332 std::string const& objFile = obj->GetFullPath();
1333 std::string rel = lg->MaybeRelativeToCurBinDir(objFile);
1334 fout << sep << lg->ConvertToXMLOutputPath(rel);
1335 sep = " ";
1336 }
1337 }
1338}
1339
1340void cmLocalVisualStudio7Generator::OutputLibraryDirectories(
1341 std::ostream& fout, std::vector<std::string> const& stdlink,

Callers 1

OutputBuildToolMethod · 0.80

Calls 6

GetExternalObjectsMethod · 0.80
GetObjectLibraryMethod · 0.80
emptyMethod · 0.45
GetFullPathMethod · 0.45

Tested by

no test coverage detected