diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-08-24 15:17:25 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-08-24 15:17:25 (GMT) |
commit | 81487bdb797d3cc72bde41775a68e54f2981dd5f (patch) | |
tree | bb535446a53ddf59774e7fe14f918ef8e9c1d3f3 /Source | |
parent | 75cf590b21d61e1c957e2afc345053a7980634a2 (diff) | |
download | CMake-81487bdb797d3cc72bde41775a68e54f2981dd5f.zip CMake-81487bdb797d3cc72bde41775a68e54f2981dd5f.tar.gz CMake-81487bdb797d3cc72bde41775a68e54f2981dd5f.tar.bz2 |
BUG: If macdir does not end with '/' then add it always, not just when adding current directory
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmAddExecutableCommand.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx index 8b5f24c..0bc2a7a 100644 --- a/Source/cmAddExecutableCommand.cxx +++ b/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"; |