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

Method OutputFlag

Source/cmVisualStudio10TargetGenerator.cxx:164–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 void OutputFlag(std::ostream& /*fout*/, int /*indent*/,
165 std::string const& tag, std::string const& content) override
166 {
167 if (!this->GetConfiguration().empty()) {
168 // if there are configuration specific flags, then
169 // use the configuration specific tag for PreprocessorDefinitions
170 std::string const cond =
171 this->TargetGenerator->CalcCondition(this->GetConfiguration());
172 this->Parent->WritePlatformConfigTag(tag, cond, content);
173 } else if (!this->SuppressStartupBannerCondition.empty() &&
174 tag == "SuppressStartupBanner"_s) {
175 this->Parent->WritePlatformConfigTag(
176 tag, this->SuppressStartupBannerCondition, content);
177 } else {
178 this->Parent->Element(tag, content);
179 }
180 }
181
182 std::string SuppressStartupBannerCondition;
183

Callers

nothing calls this directly

Calls 4

CalcConditionMethod · 0.80
emptyMethod · 0.45
ElementMethod · 0.45

Tested by

no test coverage detected