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

Method GetUseShortObjectNamesForInstall

Source/cmGeneratorTarget.cxx:5554–5571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5552}
5553
5554cmObjectLocations::UseShortPath
5555cmGeneratorTarget::GetUseShortObjectNamesForInstall() const
5556{
5557 auto prop = this->Target->GetProperty("INSTALL_OBJECT_NAME_STRATEGY");
5558 if (prop == "SHORT"_s) {
5559 return cmObjectLocations::UseShortPath::Yes;
5560 }
5561 if (prop == "FULL"_s) {
5562 return cmObjectLocations::UseShortPath::No;
5563 }
5564 if (prop.IsSet()) {
5565 this->Makefile->IssueMessage(
5566 MessageType::FATAL_ERROR,
5567 cmStrCat("Property INSTALL_OBJECT_NAME_STRATEGY of target \"",
5568 this->GetName(), "\" set to the unsupported strategy ", prop));
5569 }
5570 return cmObjectLocations::UseShortPath::No;
5571}
5572
5573std::string cmGeneratorTarget::GetSupportDirectory(
5574 cmStateEnums::IntermediateDirKind kind) const

Callers 1

Calls 5

cmStrCatFunction · 0.70
GetPropertyMethod · 0.45
IsSetMethod · 0.45
IssueMessageMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected