浏览代码

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

Andy Cedilnik 21 年之前
父节点
当前提交
81487bdb79
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Source/cmAddExecutableCommand.cxx

+ 4 - 4
Source/cmAddExecutableCommand.cxx

@@ -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";