| 58 | #include "cmake.h" |
| 59 | |
| 60 | cmMakefileTargetGenerator::cmMakefileTargetGenerator(cmGeneratorTarget* target) |
| 61 | : cmCommonTargetGenerator(target) |
| 62 | { |
| 63 | this->CustomCommandDriver = OnBuild; |
| 64 | this->LocalGenerator = |
| 65 | static_cast<cmLocalUnixMakefileGenerator3*>(target->GetLocalGenerator()); |
| 66 | this->GlobalGenerator = static_cast<cmGlobalUnixMakefileGenerator3*>( |
| 67 | this->LocalGenerator->GetGlobalGenerator()); |
| 68 | cmake* cm = this->GlobalGenerator->GetCMakeInstance(); |
| 69 | this->NoRuleMessages = false; |
| 70 | if (cmValue ruleStatus = |
| 71 | cm->GetState()->GetGlobalProperty("RULE_MESSAGES")) { |
| 72 | this->NoRuleMessages = ruleStatus.IsOff(); |
| 73 | } |
| 74 | switch (this->GeneratorTarget->GetPolicyStatusCMP0113()) { |
| 75 | case cmPolicies::WARN: |
| 76 | CM_FALLTHROUGH; |
| 77 | case cmPolicies::OLD: |
| 78 | this->CMP0113New = false; |
| 79 | break; |
| 80 | case cmPolicies::NEW: |
| 81 | this->CMP0113New = true; |
| 82 | break; |
| 83 | } |
| 84 | this->MacOSXContentGenerator = |
| 85 | cm::make_unique<MacOSXContentGeneratorType>(this); |
| 86 | } |
| 87 | |
| 88 | cmMakefileTargetGenerator::~cmMakefileTargetGenerator() = default; |
| 89 |
nothing calls this directly
no test coverage detected