Commit 3444105f authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmLocalGenerator: Inline last use of local variable

parent 77c4202e
Pipeline #30050 passed with stage
......@@ -1404,8 +1404,6 @@ void cmLocalGenerator::OutputLinkLibraries(
{
OutputFormat shellFormat =
(forResponseFile) ? RESPONSE : ((useWatcomQuote) ? WATCOMQUOTE : SHELL);
bool escapeAllowMakeVars = !forResponseFile;
cmComputeLinkInformation& cli = *pcli;
std::string linkLanguage = cli.GetLinkLanguage();
......@@ -1457,7 +1455,7 @@ void cmLocalGenerator::OutputLinkLibraries(
std::string rpath_link = cli.GetRPathLinkString();
if (!cli.GetRPathLinkFlag().empty() && !rpath_link.empty()) {
fout << cli.GetRPathLinkFlag();
fout << this->EscapeForShell(rpath_link, escapeAllowMakeVars);
fout << this->EscapeForShell(rpath_link, !forResponseFile);
fout << " ";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment