BUG: If macdir does not end with '/' then add it always, not just when adding current directory
This commit is contained in:
parent
75cf590b21
commit
81487bdb79
|
@ -69,11 +69,11 @@ 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 += "/";
|
||||
}
|
||||
}
|
||||
macdir += exename + ".app/Contents/";
|
||||
std::string f2 = macdir + "Info.plist";
|
||||
macdir += "MacOS";
|
||||
|
|
Loading…
Reference in New Issue