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

Function AppendProperty

Source/cmPackageInfoReader.cxx:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void AppendProperty(cmMakefile* makefile, cmTarget* target,
246 cm::string_view property, cm::string_view configuration,
247 std::string const& value)
248{
249 std::string const fullprop = cmStrCat("INTERFACE_", property);
250 if (!configuration.empty()) {
251 std::string const genexValue =
252 cmStrCat("$<$<CONFIG:", configuration, ">:", value, '>');
253 target->AppendProperty(fullprop, genexValue, makefile->GetBacktrace());
254 } else {
255 target->AppendProperty(fullprop, value, makefile->GetBacktrace());
256 }
257}
258
259void AppendImportProperty(cmMakefile* makefile, cmTarget* target,
260 cm::string_view property,

Callers 6

AppendLanguagePropertiesFunction · 0.85
AddCompileFeatureFunction · 0.85
AddLinkFeatureFunction · 0.85
AddDefinitionFunction · 0.85
SetTargetPropertiesMethod · 0.85
ImportTargetsMethod · 0.85

Calls 4

cmStrCatFunction · 0.70
emptyMethod · 0.45
AppendPropertyMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…