| 5655 | } |
| 5656 | |
| 5657 | bool cmGeneratorTarget::IsImportedFrameworkFolderOnApple( |
| 5658 | std::string const& config) const |
| 5659 | { |
| 5660 | if (this->IsApple() && this->IsImported() && |
| 5661 | (this->GetType() == cmStateEnums::STATIC_LIBRARY || |
| 5662 | this->GetType() == cmStateEnums::SHARED_LIBRARY || |
| 5663 | this->GetType() == cmStateEnums::UNKNOWN_LIBRARY)) { |
| 5664 | std::string cfg = config; |
| 5665 | if (cfg.empty() && this->GetGlobalGenerator()->IsXcode()) { |
| 5666 | // FIXME(#25515): Remove the need for this workaround. |
| 5667 | // The Xcode generator queries include directories without any |
| 5668 | // specific configuration. Pick one in case this target does |
| 5669 | // not set either IMPORTED_LOCATION or IMPORTED_CONFIGURATIONS. |
| 5670 | cfg = |
| 5671 | this->Makefile->GetGeneratorConfigs(cmMakefile::IncludeEmptyConfig)[0]; |
| 5672 | } |
| 5673 | return cmSystemTools::IsPathToFramework(this->GetLocation(cfg)); |
| 5674 | } |
| 5675 | |
| 5676 | return false; |
| 5677 | } |
| 5678 | |
| 5679 | bool cmGeneratorTarget::IsAppBundleOnApple() const |
| 5680 | { |
no test coverage detected