summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-03 16:23:39 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-03 16:23:39 (GMT)
commite6de1efcb8651d53bf03bc5cdeca124d6966e738 (patch)
treee22d2059592dbd7a0545ecb674f6d3fa9191b674 /Source/cmFileCommand.cxx
parent038abb867e0d4276ff10b59a3e9388bcbb646525 (diff)
downloadCMake-e6de1efcb8651d53bf03bc5cdeca124d6966e738.zip
CMake-e6de1efcb8651d53bf03bc5cdeca124d6966e738.tar.gz
CMake-e6de1efcb8651d53bf03bc5cdeca124d6966e738.tar.bz2
ENH: Fix support for debug postfix
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 82a70ca..ee537f3 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -244,8 +244,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args)
if ( build_type )
{
extra_dir = build_type;
- std::string btype = build_type;
- cmSystemTools::LowerCase(btype);
+ std::string btype = cmSystemTools::LowerCase(build_type);
if ( btype == "debug" )
{
debug = 1;
@@ -359,7 +358,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args)
case cmTarget::SHARED_LIBRARY:
if ( debug )
{
- fname = fnamewe + debug_postfix + "." + ext;
+ fname = fnamewe + debug_postfix + ext;
}
case cmTarget::EXECUTABLE:
if ( extra_dir.size() > 0 )