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

Method NormalGetRealName

Source/cmGeneratorTarget.cxx:3593–3612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3591}
3592
3593std::string cmGeneratorTarget::NormalGetRealName(
3594 std::string const& config, cmStateEnums::ArtifactType artifact) const
3595{
3596 // This should not be called for imported targets.
3597 // TODO: Split cmTarget into a class hierarchy to get compile-time
3598 // enforcement of the limited imported target API.
3599 if (this->IsImported()) {
3600 std::string msg = cmStrCat("NormalGetRealName called on imported target: ",
3601 this->GetName());
3602 this->LocalGenerator->IssueMessage(MessageType::INTERNAL_ERROR, msg);
3603 }
3604
3605 Names names = this->GetType() == cmStateEnums::EXECUTABLE
3606 ? this->GetExecutableNames(config)
3607 : this->GetLibraryNames(config);
3608
3609 // Compute the real name that will be built.
3610 return artifact == cmStateEnums::RuntimeBinaryArtifact ? names.Real
3611 : names.ImportReal;
3612}
3613
3614cmGeneratorTarget::Names cmGeneratorTarget::GetLibraryNames(
3615 std::string const& config) const

Callers 1

NormalGetFullPathMethod · 0.95

Calls 7

IsImportedMethod · 0.95
GetTypeMethod · 0.95
GetExecutableNamesMethod · 0.95
GetLibraryNamesMethod · 0.95
cmStrCatFunction · 0.70
GetNameMethod · 0.45
IssueMessageMethod · 0.45

Tested by

no test coverage detected