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

Method NormalGetFullPath

Source/cmGeneratorTarget.cxx:3560–3591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3558}
3559
3560std::string cmGeneratorTarget::NormalGetFullPath(
3561 std::string const& config, cmStateEnums::ArtifactType artifact,
3562 bool realname) const
3563{
3564 std::string fpath = cmStrCat(this->GetDirectory(config, artifact), '/');
3565 if (this->IsAppBundleOnApple()) {
3566 fpath =
3567 cmStrCat(this->BuildBundleDirectory(fpath, config, FullLevel), '/');
3568 }
3569
3570 // Add the full name of the target.
3571 switch (artifact) {
3572 case cmStateEnums::RuntimeBinaryArtifact:
3573 if (realname) {
3574 fpath += this->NormalGetRealName(config);
3575 } else {
3576 fpath +=
3577 this->GetFullName(config, cmStateEnums::RuntimeBinaryArtifact);
3578 }
3579 break;
3580 case cmStateEnums::ImportLibraryArtifact:
3581 if (realname) {
3582 fpath +=
3583 this->NormalGetRealName(config, cmStateEnums::ImportLibraryArtifact);
3584 } else {
3585 fpath +=
3586 this->GetFullName(config, cmStateEnums::ImportLibraryArtifact);
3587 }
3588 break;
3589 }
3590 return fpath;
3591}
3592
3593std::string cmGeneratorTarget::NormalGetRealName(
3594 std::string const& config, cmStateEnums::ArtifactType artifact) const

Callers 2

GetFullPathMethod · 0.95
DumpArtifactsMethod · 0.80

Calls 6

GetDirectoryMethod · 0.95
IsAppBundleOnAppleMethod · 0.95
BuildBundleDirectoryMethod · 0.95
NormalGetRealNameMethod · 0.95
GetFullNameMethod · 0.95
cmStrCatFunction · 0.70

Tested by

no test coverage detected