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

Method CheckProperty

Source/cmTarget.cxx:2571–2592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2569}
2570
2571void cmTarget::CheckProperty(std::string const& prop,
2572 cmMakefile* context) const
2573{
2574 // Certain properties need checking.
2575 if (cmHasLiteralPrefix(prop, "LINK_INTERFACE_LIBRARIES")) {
2576 if (cmValue value = this->GetProperty(prop)) {
2577 CheckLINK_INTERFACE_LIBRARIES(prop, *value, context, false);
2578 }
2579 } else if (cmHasLiteralPrefix(prop, "IMPORTED_LINK_INTERFACE_LIBRARIES")) {
2580 if (cmValue value = this->GetProperty(prop)) {
2581 CheckLINK_INTERFACE_LIBRARIES(prop, *value, context, true);
2582 }
2583 } else if (prop == "INTERFACE_LINK_LIBRARIES") {
2584 if (cmValue value = this->GetProperty(prop)) {
2585 CheckINTERFACE_LINK_LIBRARIES(*value, context);
2586 }
2587 } else if (prop == "IMPORTED_GLOBAL") {
2588 if (this->IsImported()) {
2589 CheckIMPORTED_GLOBAL(this, context);
2590 }
2591 }
2592}
2593
2594cmValue cmTarget::GetComputedProperty(std::string const& prop,
2595 cmMakefile& mf) const

Callers 2

HandleTargetFunction · 0.80

Calls 6

GetPropertyMethod · 0.95
cmHasLiteralPrefixFunction · 0.85
CheckIMPORTED_GLOBALFunction · 0.85
IsImportedMethod · 0.45

Tested by

no test coverage detected