浏览代码

ENH: Fix support for debug postfix

Andy Cedilnik 22 年之前
父节点
当前提交
e6de1efcb8
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Source/cmFileCommand.cxx

+ 2 - 3
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 )