From 81487bdb797d3cc72bde41775a68e54f2981dd5f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 24 Aug 2004 11:17:25 -0400 Subject: [PATCH] BUG: If macdir does not end with '/' then add it always, not just when adding current directory --- Source/cmAddExecutableCommand.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx index 8b5f24c93..0bc2a7a80 100644 --- a/Source/cmAddExecutableCommand.cxx +++ b/Source/cmAddExecutableCommand.cxx @@ -69,10 +69,10 @@ bool cmAddExecutableCommand::InitialPass(std::vector 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";