| 61 | } |
| 62 | |
| 63 | bool TargetIncludeDirectoriesImpl::HandleDirectContent( |
| 64 | cmTarget* tgt, std::vector<std::string> const& content, bool prepend, |
| 65 | bool system) |
| 66 | { |
| 67 | cmListFileBacktrace lfbt = this->Makefile->GetBacktrace(); |
| 68 | tgt->InsertInclude(BT<std::string>(this->Join(content), lfbt), prepend); |
| 69 | if (system) { |
| 70 | std::string prefix = this->Makefile->GetCurrentSourceDirectory() + "/"; |
| 71 | std::set<std::string> sdirs; |
| 72 | for (std::string const& it : content) { |
| 73 | if (cmSystemTools::FileIsFullPath(it) || |
| 74 | cmGeneratorExpression::Find(it) == 0) { |
| 75 | sdirs.insert(it); |
| 76 | } else { |
| 77 | sdirs.insert(prefix + it); |
| 78 | } |
| 79 | } |
| 80 | tgt->AddSystemIncludeDirectories(sdirs); |
| 81 | } |
| 82 | return true; // Successfully handled. |
| 83 | } |
| 84 | |
| 85 | void TargetIncludeDirectoriesImpl::HandleInterfaceContent( |
| 86 | cmTarget* tgt, std::vector<std::string> const& content, bool prepend, |
no test coverage detected