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

Function GetExportArgumentFromVariable

Source/cmInstallCommand.cxx:2065–2076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2063
2064template <typename T>
2065void GetExportArgumentFromVariable(cmMakefile const* makefile,
2066 cmExportSet const& exportSet,
2067 cm::string_view suffix, T& variable)
2068{
2069 std::string const& name =
2070 cmStrCat(exportSet.GetName(), "_EXPORT_PACKAGE_INFO_"_s, suffix);
2071 if (cmValue const& value = makefile->GetDefinition(name)) {
2072 std::string realValue;
2073 makefile->ConfigureString(value, realValue, true, false);
2074 AssignValue(variable, realValue);
2075 }
2076}
2077
2078bool HandleMappedPackageInfo(
2079 cmExportSet& exportSet, cm::string_view directive, Helper& helper,

Callers 1

HandleMappedPackageInfoFunction · 0.85

Calls 5

AssignValueFunction · 0.85
cmStrCatFunction · 0.70
GetNameMethod · 0.45
GetDefinitionMethod · 0.45
ConfigureStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…