| 3591 | } |
| 3592 | |
| 3593 | std::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 | |
| 3614 | cmGeneratorTarget::Names cmGeneratorTarget::GetLibraryNames( |
| 3615 | std::string const& config) const |
no test coverage detected