| 2584 | } |
| 2585 | |
| 2586 | void cmLocalGenerator::AppendLinkFlagsWithParsing( |
| 2587 | std::string& flags, std::string const& newFlags, |
| 2588 | cmGeneratorTarget const* target, std::string const& language) |
| 2589 | { |
| 2590 | std::vector<std::string> options; |
| 2591 | cmSystemTools::ParseUnixCommandLine(newFlags.c_str(), options); |
| 2592 | this->SetLinkScriptShell(this->GlobalGenerator->GetUseLinkScript()); |
| 2593 | std::vector<BT<std::string>> optionsWithBT{ options.size() }; |
| 2594 | std::transform(options.cbegin(), options.cend(), optionsWithBT.begin(), |
| 2595 | [](std::string const& item) -> BT<std::string> { |
| 2596 | return BT<std::string>{ item }; |
| 2597 | }); |
| 2598 | target->ResolveLinkerWrapper(optionsWithBT, language); |
| 2599 | for (auto const& item : optionsWithBT) { |
| 2600 | this->AppendFlagEscape(flags, item.Value); |
| 2601 | } |
| 2602 | this->SetLinkScriptShell(false); |
| 2603 | } |
| 2604 | |
| 2605 | void cmLocalGenerator::AppendFlags(std::string& flags, |
| 2606 | std::string const& newFlags, |
no test coverage detected