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

Method CheckReservedTargetNamePrefix

Source/cmGlobalGenerator.cxx:2904–2916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2902}
2903
2904bool cmGlobalGenerator::CheckReservedTargetNamePrefix(
2905 std::string const& targetPrefix, std::string const& reason) const
2906{
2907 bool ret = true;
2908 for (auto const& tgtPair : this->TargetSearchIndex) {
2909 if (cmHasPrefix(tgtPair.first, targetPrefix)) {
2910 IssueReservedTargetNameError(this->GetCMakeInstance(), tgtPair.second,
2911 tgtPair.first, reason);
2912 ret = false;
2913 }
2914 }
2915 return ret;
2916}
2917
2918void cmGlobalGenerator::CreateDefaultGlobalTargets(
2919 std::vector<GlobalTargetInfo>& targets)

Callers 1

Calls 3

GetCMakeInstanceMethod · 0.95
cmHasPrefixFunction · 0.85

Tested by

no test coverage detected