BUG: If macdir does not end with '/' then add it always, not just when adding current directory

This commit is contained in:
Andy Cedilnik 2004-08-24 11:17:25 -04:00
parent 75cf590b21
commit 81487bdb79
1 changed files with 4 additions and 4 deletions

View File

@ -69,10 +69,10 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
if ( macdir.size() == 0 )
{
macdir = m_Makefile->GetCurrentOutputDirectory();
if(macdir.size() && macdir[macdir.size()-1] != '/')
{
macdir += "/";
}
}
if(macdir.size() && macdir[macdir.size()-1] != '/')
{
macdir += "/";
}
macdir += exename + ".app/Contents/";
std::string f2 = macdir + "Info.plist";