| 1445 | } |
| 1446 | |
| 1447 | std::string cmTarget::GetDebugGeneratorExpressions( |
| 1448 | std::string const& value, cmTargetLinkLibraryType llt) const |
| 1449 | { |
| 1450 | if (llt == GENERAL_LibraryType) { |
| 1451 | return value; |
| 1452 | } |
| 1453 | |
| 1454 | // Get the list of configurations considered to be DEBUG. |
| 1455 | std::vector<std::string> debugConfigs = |
| 1456 | this->impl->Makefile->GetCMakeInstance()->GetDebugConfigs(); |
| 1457 | |
| 1458 | std::string configString = "$<CONFIG:" + debugConfigs[0] + ">"; |
| 1459 | |
| 1460 | if (debugConfigs.size() > 1) { |
| 1461 | for (std::string const& conf : cmMakeRange(debugConfigs).advance(1)) { |
| 1462 | configString += ",$<CONFIG:" + conf + ">"; |
| 1463 | } |
| 1464 | configString = "$<OR:" + configString + ">"; |
| 1465 | } |
| 1466 | |
| 1467 | if (llt == OPTIMIZED_LibraryType) { |
| 1468 | configString = "$<NOT:" + configString + ">"; |
| 1469 | } |
| 1470 | return "$<" + configString + ":" + value + ">"; |
| 1471 | } |
| 1472 | |
| 1473 | static std::string targetNameGenex(std::string const& lib) |
| 1474 | { |
no test coverage detected