| 1148 | } |
| 1149 | |
| 1150 | cmTarget* cmLocalGenerator::AddUtilityCommand( |
| 1151 | std::string const& utilityName, bool excludeFromAll, |
| 1152 | std::unique_ptr<cmCustomCommand> cc) |
| 1153 | { |
| 1154 | cmTarget* target = |
| 1155 | this->Makefile->AddNewUtilityTarget(utilityName, excludeFromAll); |
| 1156 | target->SetIsGeneratorProvided(true); |
| 1157 | |
| 1158 | if (cc->GetCommandLines().empty() && cc->GetDepends().empty()) { |
| 1159 | return target; |
| 1160 | } |
| 1161 | |
| 1162 | cc->SetBacktrace(this->DirectoryBacktrace); |
| 1163 | detail::AddUtilityCommand(*this, cmCommandOrigin::Generator, target, |
| 1164 | std::move(cc)); |
| 1165 | |
| 1166 | return target; |
| 1167 | } |
| 1168 | |
| 1169 | std::vector<BT<std::string>> cmLocalGenerator::GetIncludeDirectoriesImplicit( |
| 1170 | cmGeneratorTarget const* target, std::string const& lang, |
nothing calls this directly
no test coverage detected