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

Method HandleInterfaceContent

Source/cmTargetPropCommandBase.cxx:180–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void cmTargetPropCommandBase::HandleInterfaceContent(
181 cmTarget* tgt, std::vector<std::string> const& content, bool prepend, bool)
182{
183 if (prepend) {
184 std::string const propName = std::string("INTERFACE_") + this->Property;
185 cmValue propValue = tgt->GetProperty(propName);
186 std::string const totalContent =
187 this->Join(content) + (propValue ? (";" + *propValue) : std::string());
188 tgt->SetProperty(propName, totalContent);
189 } else {
190 tgt->AppendProperty("INTERFACE_" + this->Property, this->Join(content));
191 }
192}

Callers 1

Calls 4

GetPropertyMethod · 0.45
JoinMethod · 0.45
SetPropertyMethod · 0.45
AppendPropertyMethod · 0.45

Tested by

no test coverage detected