| 2554 | } |
| 2555 | |
| 2556 | void cmLocalGenerator::AppendFlags(std::string& flags, |
| 2557 | std::string const& newFlags) const |
| 2558 | { |
| 2559 | bool allSpaces = |
| 2560 | std::all_of(newFlags.begin(), newFlags.end(), cmsysString_isspace); |
| 2561 | |
| 2562 | if (!newFlags.empty() && !allSpaces) { |
| 2563 | if (!flags.empty()) { |
| 2564 | flags += " "; |
| 2565 | } |
| 2566 | flags += newFlags; |
| 2567 | } |
| 2568 | } |
| 2569 | |
| 2570 | void cmLocalGenerator::AppendFlags( |
| 2571 | std::string& flags, std::vector<BT<std::string>> const& newFlags) const |
no test coverage detected