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

Method UseFolderProperty

Source/cmGlobalGenerator.cxx:3488–3502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3486}
3487
3488bool cmGlobalGenerator::UseFolderProperty() const
3489{
3490 cmValue const prop =
3491 this->GetCMakeInstance()->GetState()->GetGlobalProperty("USE_FOLDERS");
3492
3493 // If this property is defined, let the setter turn this on or off.
3494 if (prop) {
3495 return prop.IsOn();
3496 }
3497
3498 // If CMP0143 is NEW `treat` "USE_FOLDERS" as ON. Otherwise `treat` it as OFF
3499 assert(!this->Makefiles.empty());
3500 return (this->Makefiles[0]->GetPolicyStatus(cmPolicies::CMP0143) ==
3501 cmPolicies::NEW);
3502}
3503
3504void cmGlobalGenerator::CreateGlobalTarget(GlobalTargetInfo const& gti,
3505 cmMakefile* mf)

Callers 7

CreateGlobalTargetMethod · 0.95
AddCheckTargetMethod · 0.80
AddAllTargetMethod · 0.80
AddCheckTargetMethod · 0.80
AddExtraIDETargetsMethod · 0.80
CreateSolutionMethod · 0.80

Calls 6

GetCMakeInstanceMethod · 0.95
GetGlobalPropertyMethod · 0.80
GetStateMethod · 0.45
IsOnMethod · 0.45
emptyMethod · 0.45
GetPolicyStatusMethod · 0.45

Tested by

no test coverage detected