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

Method PopulateTargetProperties

Source/cmTargetPropCommandBase.cxx:162–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162bool cmTargetPropCommandBase::PopulateTargetProperties(
163 std::string const& scope, std::vector<std::string> const& content,
164 bool prepend, bool system)
165{
166 if (content.empty()) {
167 return true;
168 }
169 if (scope == "PRIVATE" || scope == "PUBLIC") {
170 if (!this->HandleDirectContent(this->Target, content, prepend, system)) {
171 return false;
172 }
173 }
174 if (scope == "INTERFACE" || scope == "PUBLIC") {
175 this->HandleInterfaceContent(this->Target, content, prepend, system);
176 }
177 return true;
178}
179
180void cmTargetPropCommandBase::HandleInterfaceContent(
181 cmTarget* tgt, std::vector<std::string> const& content, bool prepend, bool)

Callers 1

ProcessContentArgsMethod · 0.95

Calls 3

emptyMethod · 0.45
HandleDirectContentMethod · 0.45

Tested by

no test coverage detected