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

Method CreateUtilityOutput

Source/cmLocalGenerator.cxx:5265–5278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5263}
5264
5265std::string cmLocalGenerator::CreateUtilityOutput(
5266 std::string const& targetName, std::vector<std::string> const&,
5267 cmListFileBacktrace const&)
5268{
5269 std::string force =
5270 cmStrCat(this->GetCurrentBinaryDirectory(), "/CMakeFiles/", targetName);
5271 // The output is not actually created so mark it symbolic.
5272 if (cmSourceFile* sf = this->Makefile->GetOrCreateGeneratedSource(force)) {
5273 sf->SetProperty("SYMBOLIC", "1");
5274 } else {
5275 cmSystemTools::Error("Could not get source file entry for " + force);
5276 }
5277 return force;
5278}
5279
5280std::vector<cmCustomCommandGenerator>
5281cmLocalGenerator::MakeCustomCommandGenerators(cmCustomCommand const& cc,

Callers 1

AddUtilityCommandFunction · 0.45

Calls 4

cmStrCatFunction · 0.70
ErrorClass · 0.70
SetPropertyMethod · 0.45

Tested by

no test coverage detected