cmGlobalXCodeGenerator: do not pass char* to cmSystemTools::CollapseFullPath()

This takes a std::string&, so directly pass the object to it instead of
converting back and forth.
This commit is contained in:
Rolf Eike Beer 2016-04-20 23:23:26 +02:00
parent 2b25ce30ca
commit 2263949b78

View File

@ -2282,7 +2282,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmGeneratorTarget* gtgt,
{
std::string frameworkDir = *i;
frameworkDir += "/../";
frameworkDir = cmSystemTools::CollapseFullPath(frameworkDir.c_str());
frameworkDir = cmSystemTools::CollapseFullPath(frameworkDir);
if(emitted.insert(frameworkDir).second)
{
fdirs.Add(this->XCodeEscapePath(frameworkDir));