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

Method WriteTargetsFileReferences

Source/cmVisualStudio10TargetGenerator.cxx:1380–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1378}
1379
1380void cmVisualStudio10TargetGenerator::WriteTargetsFileReferences(Elem& e1)
1381{
1382 for (TargetsFileAndConfigs const& tac : this->TargetsFileAndConfigsVec) {
1383 std::ostringstream oss;
1384 oss << "Exists('" << tac.File << "')";
1385 if (!tac.Configs.empty()) {
1386 oss << " And (";
1387 for (size_t j = 0; j < tac.Configs.size(); ++j) {
1388 if (j > 0) {
1389 oss << " Or ";
1390 }
1391 oss << "'$(Configuration)'=='" << tac.Configs[j] << '\'';
1392 }
1393 oss << ')';
1394 }
1395
1396 Elem(e1, "Import")
1397 .Attribute("Project", tac.File)
1398 .Attribute("Condition", oss.str());
1399 }
1400}
1401
1402void cmVisualStudio10TargetGenerator::WriteWinRTReferences(Elem& e0)
1403{

Callers 1

Calls 5

ElemClass · 0.85
AttributeMethod · 0.80
strMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected