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