| 275 | } |
| 276 | |
| 277 | static void MoveSystemIncludesToEnd(std::vector<std::string>& includeDirs, |
| 278 | std::string const& config, |
| 279 | std::string const& lang, |
| 280 | cmGeneratorTarget const* target) |
| 281 | { |
| 282 | if (!target) { |
| 283 | return; |
| 284 | } |
| 285 | |
| 286 | std::stable_sort( |
| 287 | includeDirs.begin(), includeDirs.end(), |
| 288 | [&target, &config, &lang](std::string const& a, std::string const& b) { |
| 289 | return !target->IsSystemIncludeDirectory(a, config, lang) && |
| 290 | target->IsSystemIncludeDirectory(b, config, lang); |
| 291 | }); |
| 292 | } |
| 293 | |
| 294 | static void MoveSystemIncludesToEnd(std::vector<BT<std::string>>& includeDirs, |
| 295 | std::string const& config, |
no test coverage detected
searching dependent graphs…