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

Method AddCustomCommandTarget

Source/cmLocalNinjaGenerator.cxx:866–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void cmLocalNinjaGenerator::AddCustomCommandTarget(cmCustomCommand const* cc,
867 cmGeneratorTarget* target)
868{
869 CustomCommandTargetMap::value_type v(cc, std::set<cmGeneratorTarget*>());
870 std::pair<CustomCommandTargetMap::iterator, bool> ins =
871 this->CustomCommandTargets.insert(v);
872 if (ins.second) {
873 this->CustomCommands.push_back(cc);
874 }
875 ins.first->second.insert(target);
876}
877
878void cmLocalNinjaGenerator::WriteCustomCommandBuildStatements(
879 std::string const& fileConfig)

Callers 2

Calls 2

push_backMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected