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.
This commit is contained in:
Daniel Eiband 2019-09-11 11:22:40 +02:00
parent 19bcdca93c
commit 445ff5ccdf

View File

@ -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;