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

Method AddAttributeIfNotEmpty

Source/cmXCodeObject.h:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void AddAttributeIfNotEmpty(std::string const& name, cmXCodeObject* value)
77 {
78 if (value && !value->IsEmpty()) {
79 AddAttribute(name, value);
80 }
81 }
82
83 void SetObject(cmXCodeObject* value) { this->Object = value; }
84 cmXCodeObject* GetObject() { return this->Object; }

Callers 2

CreateXCodeSourceFileMethod · 0.80
AddEmbeddedObjectsMethod · 0.80

Calls 1

IsEmptyMethod · 0.45

Tested by

no test coverage detected