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

Method cmMakefileTargetGenerator

Source/cmMakefileTargetGenerator.cxx:60–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58#include "cmake.h"
59
60cmMakefileTargetGenerator::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
88cmMakefileTargetGenerator::~cmMakefileTargetGenerator() = default;
89

Callers

nothing calls this directly

Calls 6

GetGlobalPropertyMethod · 0.80
GetLocalGeneratorMethod · 0.45
GetGlobalGeneratorMethod · 0.45
GetCMakeInstanceMethod · 0.45
GetStateMethod · 0.45
IsOffMethod · 0.45

Tested by

no test coverage detected