| 1812 | } |
| 1813 | |
| 1814 | void cmMakefile::AddIncludeDirectories(std::vector<std::string> const& incs, |
| 1815 | bool before) |
| 1816 | { |
| 1817 | if (incs.empty()) { |
| 1818 | return; |
| 1819 | } |
| 1820 | |
| 1821 | std::string entryString = cmList::to_string(incs); |
| 1822 | if (before) { |
| 1823 | this->StateSnapshot.GetDirectory().PrependIncludeDirectoriesEntry( |
| 1824 | BT<std::string>(entryString, this->Backtrace)); |
| 1825 | } else { |
| 1826 | this->StateSnapshot.GetDirectory().AppendIncludeDirectoriesEntry( |
| 1827 | BT<std::string>(entryString, this->Backtrace)); |
| 1828 | } |
| 1829 | |
| 1830 | // Property on each target: |
| 1831 | for (auto& target : this->Targets) { |
| 1832 | cmTarget& t = target.second; |
| 1833 | t.InsertInclude(BT<std::string>(entryString, this->Backtrace), before); |
| 1834 | } |
| 1835 | } |
| 1836 | |
| 1837 | void cmMakefile::AddSystemIncludeDirectories(std::set<std::string> const& incs) |
| 1838 | { |
no test coverage detected