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

Method GetDebugGeneratorExpressions

Source/cmTarget.cxx:1447–1471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445}
1446
1447std::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
1473static std::string targetNameGenex(std::string const& lib)
1474{

Callers 3

AddLinkLibraryMethod · 0.95
HandleLibraryMethod · 0.80

Calls 5

cmMakeRangeFunction · 0.85
GetDebugConfigsMethod · 0.80
GetCMakeInstanceMethod · 0.45
sizeMethod · 0.45
advanceMethod · 0.45

Tested by

no test coverage detected