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

Function CheckINTERFACE_LINK_LIBRARIES

Source/cmTarget.cxx:2533–2551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2531}
2532
2533void CheckINTERFACE_LINK_LIBRARIES(std::string const& value,
2534 cmMakefile* context)
2535{
2536 // Look for link-type keywords in the value.
2537 static cmsys::RegularExpression keys("(^|;)(debug|optimized|general)(;|$)");
2538 if (keys.find(value)) {
2539 // Report an error.
2540 std::ostringstream e;
2541
2542 e << "Property INTERFACE_LINK_LIBRARIES may not contain link-type "
2543 "keyword \""
2544 << keys.match(2)
2545 << "\". The INTERFACE_LINK_LIBRARIES "
2546 "property may contain configuration-sensitive generator-expressions "
2547 "which may be used to specify per-configuration rules.";
2548
2549 context->IssueMessage(MessageType::FATAL_ERROR, e.str());
2550 }
2551}
2552
2553void CheckIMPORTED_GLOBAL(cmTarget const* target, cmMakefile* context)
2554{

Callers 1

CheckPropertyMethod · 0.85

Calls 4

strMethod · 0.80
findMethod · 0.45
matchMethod · 0.45
IssueMessageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…