ENH: Simplify framework -F flag generation
This removes an unnecessary use of ConvertToOutputForExisting which is needed only on Windows to consider short-pathing.
This commit is contained in:
parent
7876a5098b
commit
8bffd5af36
|
@ -1156,8 +1156,10 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang)
|
||||||
if(emitted.insert(frameworkDir).second)
|
if(emitted.insert(frameworkDir).second)
|
||||||
{
|
{
|
||||||
includeFlags
|
includeFlags
|
||||||
<< "-F"
|
<< "-F" << this->Convert(frameworkDir.c_str(),
|
||||||
<< this->ConvertToOutputForExisting(frameworkDir.c_str()) << " ";
|
cmLocalGenerator::START_OUTPUT,
|
||||||
|
cmLocalGenerator::SHELL, true)
|
||||||
|
<< " ";
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1452,7 +1452,9 @@ std::string cmMakefileTargetGenerator::GetFrameworkFlags()
|
||||||
if(emitted.insert(*i).second)
|
if(emitted.insert(*i).second)
|
||||||
{
|
{
|
||||||
flags += "-F";
|
flags += "-F";
|
||||||
flags += this->LocalGenerator->ConvertToOutputForExisting(i->c_str());
|
flags += this->Convert(i->c_str(),
|
||||||
|
cmLocalGenerator::START_OUTPUT,
|
||||||
|
cmLocalGenerator::SHELL, true);
|
||||||
flags += " ";
|
flags += " ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue