浏览代码

Byproducts: collapse full paths of custom target byproducts

Collapse full paths of add_custom_target command byproducts for symmetry with
byproducts passed to the add_custom_command command.
Daniel Eiband 6 年之前
父节点
当前提交
445ff5ccdf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmAddCustomTargetCommand.cxx

+ 1 - 1
Source/cmAddCustomTargetCommand.cxx

@@ -127,7 +127,7 @@ bool cmAddCustomTargetCommand(std::vector<std::string> const& args,
           }
           filename += copy;
           cmSystemTools::ConvertToUnixSlashes(filename);
-          byproducts.push_back(filename);
+          byproducts.push_back(cmSystemTools::CollapseFullPath(filename));
         } break;
         case doing_depends: {
           std::string dep = copy;