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

Function PopulateLocalTarget

Source/cmCxxModuleMetadata.cxx:519–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void PopulateLocalTarget(cmTarget& target, MetaDataProperties const& props)
520{
521 if (!props.AllIncludeDirectories.empty()) {
522 target.AppendProperty("INCLUDE_DIRECTORIES",
523 cmJoin(props.AllIncludeDirectories, ";"));
524 }
525
526 if (!props.AllCompileDefinitions.empty()) {
527 target.AppendProperty("COMPILE_DEFINITIONS",
528 cmJoin(props.AllCompileDefinitions, ";"));
529 }
530
531 if (!props.AllCompileOptions.empty()) {
532 target.AppendProperty("COMPILE_OPTIONS",
533 cmJoin(props.AllCompileOptions, ";"));
534 }
535
536 if (!props.AllCompileFeatures.empty()) {
537 target.AppendProperty("COMPILE_FEATURES",
538 cmJoin(props.AllCompileFeatures, ";"));
539 }
540}
541
542void PopulateImportedTarget(cmTarget& target, MetaDataProperties const& props,
543 cmCxxModuleMetadata const& meta,

Callers 1

PopulateTargetMethod · 0.85

Calls 3

cmJoinFunction · 0.70
emptyMethod · 0.45
AppendPropertyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…