mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
Construct the full path before escaping it.
Should fix some dashboard errors.
This commit is contained in:
@@ -489,11 +489,10 @@ cmNinjaTargetGenerator
|
|||||||
cmLocalGenerator::RuleVariables compileObjectVars;
|
cmLocalGenerator::RuleVariables compileObjectVars;
|
||||||
std::string lang = language;
|
std::string lang = language;
|
||||||
compileObjectVars.Language = lang.c_str();
|
compileObjectVars.Language = lang.c_str();
|
||||||
std::string escapedSourceFileName =
|
|
||||||
this->LocalGenerator->ConvertToOutputFormat(
|
|
||||||
sourceFileName.c_str(), cmLocalGenerator::SHELL);
|
|
||||||
|
|
||||||
if (!cmSystemTools::FileIsFullPath(escapedSourceFileName.c_str()))
|
std::string escapedSourceFileName = sourceFileName;
|
||||||
|
|
||||||
|
if (!cmSystemTools::FileIsFullPath(sourceFileName.c_str()))
|
||||||
{
|
{
|
||||||
escapedSourceFileName = cmSystemTools::CollapseFullPath(
|
escapedSourceFileName = cmSystemTools::CollapseFullPath(
|
||||||
escapedSourceFileName.c_str(),
|
escapedSourceFileName.c_str(),
|
||||||
@@ -501,6 +500,10 @@ cmNinjaTargetGenerator
|
|||||||
GetHomeOutputDirectory());
|
GetHomeOutputDirectory());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
escapedSourceFileName =
|
||||||
|
this->LocalGenerator->ConvertToOutputFormat(
|
||||||
|
escapedSourceFileName.c_str(), cmLocalGenerator::SHELL);
|
||||||
|
|
||||||
compileObjectVars.Source = escapedSourceFileName.c_str();
|
compileObjectVars.Source = escapedSourceFileName.c_str();
|
||||||
compileObjectVars.Object = objectFileName.c_str();
|
compileObjectVars.Object = objectFileName.c_str();
|
||||||
compileObjectVars.Flags = vars["FLAGS"].c_str();
|
compileObjectVars.Flags = vars["FLAGS"].c_str();
|
||||||
|
|||||||
Reference in New Issue
Block a user