| 2811 | } |
| 2812 | |
| 2813 | bool cmGlobalGenerator::NameResolvesToFramework( |
| 2814 | std::string const& libname) const |
| 2815 | { |
| 2816 | if (cmSystemTools::IsPathToFramework(libname)) { |
| 2817 | return true; |
| 2818 | } |
| 2819 | |
| 2820 | if (cmTarget* tgt = this->FindTarget(libname)) { |
| 2821 | if (tgt->IsFrameworkOnApple()) { |
| 2822 | return true; |
| 2823 | } |
| 2824 | } |
| 2825 | |
| 2826 | return false; |
| 2827 | } |
| 2828 | |
| 2829 | // If the file has no extension it's either a raw executable or might |
| 2830 | // be a direct reference to a binary within a framework (bad practice!). |
no test coverage detected