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

Method WriteConvenienceRule

Source/cmLocalUnixMakefileGenerator3.cxx:884–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882}
883
884void cmLocalUnixMakefileGenerator3::WriteConvenienceRule(
885 std::ostream& ruleFileStream, std::string const& realTarget,
886 std::string const& helpTarget)
887{
888 // A rule is only needed if the names are different.
889 if (realTarget != helpTarget) {
890 // The helper target depends on the real target.
891 std::vector<std::string> depends;
892 depends.push_back(realTarget);
893
894 // There are no commands.
895 std::vector<std::string> no_commands;
896
897 // Write the rule.
898 this->WriteMakeRule(ruleFileStream, "Convenience name for target.",
899 helpTarget, depends, no_commands, true);
900 }
901}
902
903std::string cmLocalUnixMakefileGenerator3::GetRelativeTargetDirectory(
904 cmGeneratorTarget const* target) const

Callers

nothing calls this directly

Calls 2

WriteMakeRuleMethod · 0.95
push_backMethod · 0.80

Tested by

no test coverage detected