瀏覽代碼

BUG: Only the last extension should be removed.

Brad King 23 年之前
父節點
當前提交
df29ea087f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmInstallFilesCommand.cxx

+ 1 - 1
Source/cmInstallFilesCommand.cxx

@@ -63,7 +63,7 @@ void cmInstallFilesCommand::FinalPass()
       {
       {
       // replace any variables
       // replace any variables
       std::string temps = *s;
       std::string temps = *s;
-      testf = cmSystemTools::GetFilenameWithoutExtension(temps) + ext;
+      testf = cmSystemTools::GetFilenameWithoutLastExtension(temps) + ext;
       // add to the result
       // add to the result
       targetSourceLists.push_back(testf);
       targetSourceLists.push_back(testf);
       }
       }