| 1780 | } |
| 1781 | |
| 1782 | std::string cmLocalGenerator::GetXcFrameworkFlags(std::string const& lang, |
| 1783 | std::string const& config, |
| 1784 | cmGeneratorTarget* target) |
| 1785 | { |
| 1786 | cmLocalGenerator* lg = target->GetLocalGenerator(); |
| 1787 | cmMakefile* mf = lg->GetMakefile(); |
| 1788 | |
| 1789 | if (!target->IsApple()) { |
| 1790 | return std::string(); |
| 1791 | } |
| 1792 | |
| 1793 | cmValue includeSearchFlag = |
| 1794 | mf->GetDefinition(cmStrCat("CMAKE_INCLUDE_FLAG_", lang)); |
| 1795 | cmValue sysIncludeSearchFlag = |
| 1796 | mf->GetDefinition(cmStrCat("CMAKE_INCLUDE_SYSTEM_FLAG_", lang)); |
| 1797 | |
| 1798 | if (!includeSearchFlag && !sysIncludeSearchFlag) { |
| 1799 | return std::string{}; |
| 1800 | } |
| 1801 | |
| 1802 | std::string flags; |
| 1803 | if (cmComputeLinkInformation* cli = target->GetLinkInformation(config)) { |
| 1804 | std::vector<std::string> const& paths = cli->GetXcFrameworkHeaderPaths(); |
| 1805 | for (std::string const& path : paths) { |
| 1806 | if (sysIncludeSearchFlag && |
| 1807 | target->IsSystemIncludeDirectory(path, config, lang)) { |
| 1808 | flags += *sysIncludeSearchFlag; |
| 1809 | } else { |
| 1810 | flags += *includeSearchFlag; |
| 1811 | } |
| 1812 | flags += lg->ConvertToOutputFormat(path, cmOutputConverter::SHELL); |
| 1813 | flags += " "; |
| 1814 | } |
| 1815 | } |
| 1816 | return flags; |
| 1817 | } |
| 1818 | |
| 1819 | void cmLocalGenerator::GetTargetDefines(cmGeneratorTarget const* target, |
| 1820 | std::string const& config, |
no test coverage detected