Commit ab62b6f0 authored by Viktor Wallner's avatar Viktor Wallner
Browse files

VS: Remove conversion to relative path from script construction

Fixes: #21856
parent bdf6a71c
Pipeline #215663 waiting for manual action with stages
in 7 minutes and 52 seconds
...@@ -206,14 +206,8 @@ std::string cmLocalVisualStudioGenerator::ConstructScript( ...@@ -206,14 +206,8 @@ std::string cmLocalVisualStudioGenerator::ConstructScript(
} }
} }
if (workingDirectory.empty()) {
script +=
this->ConvertToOutputFormat(this->MaybeConvertToRelativePath(
this->GetCurrentBinaryDirectory(), cmd),
cmOutputConverter::SHELL);
} else {
script += this->ConvertToOutputFormat(cmd.c_str(), SHELL); script += this->ConvertToOutputFormat(cmd.c_str(), SHELL);
}
ccg.AppendArguments(c, script); ccg.AppendArguments(c, script);
// After each custom command, check for an error result. // After each custom command, check for an error result.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment