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

Method AppendProperty

Source/cmStateDirectory.cxx:315–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void cmStateDirectory::AppendProperty(std::string const& prop,
316 std::string const& value, bool asString,
317 cmListFileBacktrace const& lfbt)
318{
319 if (prop == "INCLUDE_DIRECTORIES") {
320 this->AppendIncludeDirectoriesEntry(BT<std::string>(value, lfbt));
321 return;
322 }
323 if (prop == "COMPILE_OPTIONS") {
324 this->AppendCompileOptionsEntry(BT<std::string>(value, lfbt));
325 return;
326 }
327 if (prop == "COMPILE_DEFINITIONS") {
328 this->AppendCompileDefinitionsEntry(BT<std::string>(value, lfbt));
329 return;
330 }
331 if (prop == "LINK_OPTIONS") {
332 this->AppendLinkOptionsEntry(BT<std::string>(value, lfbt));
333 return;
334 }
335 if (prop == "LINK_DIRECTORIES") {
336 this->AppendLinkDirectoriesEntry(BT<std::string>(value, lfbt));
337 return;
338 }
339
340 this->DirectoryState->Properties.AppendProperty(prop, value, asString);
341}
342
343cmValue cmStateDirectory::GetProperty(std::string const& prop) const
344{

Callers

nothing calls this directly

Tested by

no test coverage detected