ENH: getting closer

This commit is contained in:
Bill Hoffman 2007-05-08 16:37:18 -04:00
parent 2ed6191fce
commit 5af3105021
1 changed files with 16 additions and 4 deletions

View File

@ -2623,12 +2623,24 @@ cmGlobalXCodeGenerator
{ {
if(config) if(config)
{ {
if(dir.find(".framework") != dir.npos)
{
std::string::size_type pos = dir.rfind("/");
std::string framework = dir.substr(pos);
std::string newDir;
newDir = dir.substr(0, pos);
newDir += "/";
newDir += config;
dir = newDir;
}
else
{
dir += prefix; dir += prefix;
dir += config; dir += config;
dir += suffix; dir += suffix;
} }
} }
}
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------