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

Function IssueReservedTargetNameError

Source/cmGlobalGenerator.cxx:2881–2889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2879
2880namespace {
2881void IssueReservedTargetNameError(cmake* cm, cmTarget* tgt,
2882 std::string const& targetNameAsWritten,
2883 std::string const& reason)
2884{
2885 cm->IssueMessage(MessageType::FATAL_ERROR,
2886 cmStrCat("The target name \"", targetNameAsWritten,
2887 "\" is reserved ", reason, '.'),
2888 tgt->GetBacktrace());
2889}
2890}
2891
2892bool cmGlobalGenerator::CheckReservedTargetName(

Callers 2

Calls 3

cmStrCatFunction · 0.70
IssueMessageMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…