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

Method AppendProperty

Source/cmFileSet.cxx:296–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void cmFileSet::AppendProperty(std::string const& prop,
297 std::string const& value, bool asString)
298{
299 if (prop == propINCLUDE_DIRECTORIES) {
300 if (!value.empty()) {
301 cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace();
302 this->IncludeDirectories.emplace_back(value, lfbt);
303 }
304 } else if (prop == propCOMPILE_OPTIONS) {
305 if (!value.empty()) {
306 cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace();
307 this->CompileOptions.emplace_back(value, lfbt);
308 }
309 } else if (prop == propCOMPILE_DEFINITIONS) {
310 if (!value.empty()) {
311 cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace();
312 this->CompileDefinitions.emplace_back(value, lfbt);
313 }
314 } else {
315 this->Properties.AppendProperty(prop, value, asString);
316 }
317}
318
319cmValue cmFileSet::GetProperty(std::string const& prop) const
320{

Callers

nothing calls this directly

Calls 4

GetMakefileMethod · 0.95
emplace_backMethod · 0.80
emptyMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected