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

Function HandleFileSetMode

Source/cmGetPropertyCommand.cxx:443–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443bool HandleFileSetMode(cmExecutionStatus& status, std::string const& name,
444 OutType infoType, std::string const& variable,
445 std::string const& propertyName, cmTarget* target)
446{
447 if (name.empty()) {
448 status.SetError("not given name for FILE_SET scope.");
449 return false;
450 }
451
452 if (cmFileSet* fileSet = target->GetFileSet(name)) {
453 cmValue prop = fileSet->GetProperty(propertyName);
454 return StoreResult(infoType, status.GetMakefile(), variable, prop);
455 }
456 status.SetError(cmStrCat("could not find FILE_SET ", name, " for TARGET ",
457 target->GetName(),
458 ". Perhaps it has not yet been created."));
459 return false;
460}
461
462bool HandleSourceMode(cmExecutionStatus& status, std::string const& name,
463 OutType infoType, std::string const& variable,

Callers 1

cmGetPropertyCommandFunction · 0.70

Calls 8

StoreResultFunction · 0.70
cmStrCatFunction · 0.70
emptyMethod · 0.45
SetErrorMethod · 0.45
GetFileSetMethod · 0.45
GetPropertyMethod · 0.45
GetMakefileMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…