Browse Source

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

Andy Cedilnik 21 years ago
parent
commit
81487bdb79
1 changed files with 4 additions and 4 deletions
  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 )
     if ( macdir.size() == 0 )
       {
       {
       macdir = m_Makefile->GetCurrentOutputDirectory();
       macdir = m_Makefile->GetCurrentOutputDirectory();
-      if(macdir.size() && macdir[macdir.size()-1] != '/')
-        {
-        macdir += "/";
-        }
+      }
+    if(macdir.size() && macdir[macdir.size()-1] != '/')
+      {
+      macdir += "/";
       }
       }
     macdir += exename + ".app/Contents/";
     macdir += exename + ".app/Contents/";
     std::string f2 = macdir + "Info.plist";
     std::string f2 = macdir + "Info.plist";