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

Method AddIncludeDirectories

Source/cmMakefile.cxx:1814–1835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1812}
1813
1814void 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
1837void cmMakefile::AddSystemIncludeDirectories(std::set<std::string> const& incs)
1838{

Callers 2

cmFLTKWrapUICommandFunction · 0.80

Calls 6

to_stringFunction · 0.85
InsertIncludeMethod · 0.80
emptyMethod · 0.45
GetDirectoryMethod · 0.45

Tested by

no test coverage detected