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

Method CheckReservedTargetName

Source/cmGlobalGenerator.cxx:2892–2902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2890}
2891
2892bool cmGlobalGenerator::CheckReservedTargetName(
2893 std::string const& targetName, std::string const& reason) const
2894{
2895 cmTarget* tgt = this->FindTarget(targetName);
2896 if (!tgt) {
2897 return true;
2898 }
2899 IssueReservedTargetNameError(this->GetCMakeInstance(), tgt, targetName,
2900 reason);
2901 return false;
2902}
2903
2904bool cmGlobalGenerator::CheckReservedTargetNamePrefix(
2905 std::string const& targetPrefix, std::string const& reason) const

Callers 4

AddGlobalTarget_TestMethod · 0.95

Calls 3

FindTargetMethod · 0.95
GetCMakeInstanceMethod · 0.95

Tested by

no test coverage detected