From e6de1efcb8651d53bf03bc5cdeca124d6966e738 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 3 Feb 2004 11:23:39 -0500 Subject: [PATCH] ENH: Fix support for debug postfix --- Source/cmFileCommand.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 82a70caea..ee537f398 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -244,8 +244,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector 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 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 )