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

Method SetProperty

Source/cmFileSet.cxx:271–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269std::string const cmFileSet::propINCLUDE_DIRECTORIES = "INCLUDE_DIRECTORIES";
270
271void cmFileSet::SetProperty(std::string const& prop, cmValue value)
272{
273 if (prop == propINCLUDE_DIRECTORIES) {
274 this->IncludeDirectories.clear();
275 if (value) {
276 cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace();
277 this->IncludeDirectories.emplace_back(value, lfbt);
278 }
279 } else if (prop == propCOMPILE_OPTIONS) {
280 this->CompileOptions.clear();
281 if (value) {
282 cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace();
283 this->CompileOptions.emplace_back(value, lfbt);
284 }
285 } else if (prop == propCOMPILE_DEFINITIONS) {
286 this->CompileDefinitions.clear();
287 if (value) {
288 cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace();
289 this->CompileDefinitions.emplace_back(value, lfbt);
290 }
291 } else {
292 this->Properties.SetProperty(prop, value);
293 }
294}
295
296void cmFileSet::AppendProperty(std::string const& prop,
297 std::string const& value, bool asString)

Callers

nothing calls this directly

Calls 4

GetMakefileMethod · 0.95
emplace_backMethod · 0.80
clearMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected