| 1378 | } |
| 1379 | |
| 1380 | void 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 | |
| 1402 | void cmVisualStudio10TargetGenerator::WriteWinRTReferences(Elem& e0) |
| 1403 | { |