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

Method AppendProperty

Source/cmSourceFile.cxx:326–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void cmSourceFile::AppendProperty(std::string const& prop,
327 std::string const& value, bool asString)
328{
329 if (prop == propINCLUDE_DIRECTORIES) {
330 if (!value.empty()) {
331 cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace();
332 this->IncludeDirectories.emplace_back(value, lfbt);
333 }
334 } else if (prop == propCOMPILE_OPTIONS) {
335 if (!value.empty()) {
336 cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace();
337 this->CompileOptions.emplace_back(value, lfbt);
338 }
339 } else if (prop == propCOMPILE_DEFINITIONS) {
340 if (!value.empty()) {
341 cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace();
342 this->CompileDefinitions.emplace_back(value, lfbt);
343 }
344 } else {
345 this->Properties.AppendProperty(prop, value, asString);
346 }
347}
348
349cmValue cmSourceFile::GetPropertyForUser(std::string const& prop)
350{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected