| 3486 | } |
| 3487 | |
| 3488 | bool 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 | |
| 3504 | void cmGlobalGenerator::CreateGlobalTarget(GlobalTargetInfo const& gti, |
| 3505 | cmMakefile* mf) |
no test coverage detected