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

Method GetProperty

Source/cmFileSet.cxx:319–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319cmValue cmFileSet::GetProperty(std::string const& prop) const
320{
321 // Check for the properties with backtraces.
322 if (prop == propINCLUDE_DIRECTORIES) {
323 if (this->IncludeDirectories.empty()) {
324 return nullptr;
325 }
326
327 static std::string output;
328 output = cmList::to_string(this->IncludeDirectories);
329 return cmValue(output);
330 }
331
332 if (prop == propCOMPILE_OPTIONS) {
333 if (this->CompileOptions.empty()) {
334 return nullptr;
335 }
336
337 static std::string output;
338 output = cmList::to_string(this->CompileOptions);
339 return cmValue(output);
340 }
341
342 if (prop == propCOMPILE_DEFINITIONS) {
343 if (this->CompileDefinitions.empty()) {
344 return nullptr;
345 }
346
347 static std::string output;
348 output = cmList::to_string(this->CompileDefinitions);
349 return cmValue(output);
350 }
351
352 return this->Properties.GetPropertyValue(prop);
353}

Callers

nothing calls this directly

Calls 4

to_stringFunction · 0.85
GetPropertyValueMethod · 0.80
cmValueClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected