Ninja: Fix for PDB files with spaces in the path.
This calls ConvertToOutputFormat on the PDB paths for pdb file paths used in both library creation and the building of object files.
This commit is contained in:
parent
ac800f49d0
commit
bba37dd517
|
@ -372,7 +372,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||
targetOutputImplib.c_str(), cmLocalGenerator::SHELL);
|
||||
}
|
||||
|
||||
vars["TARGET_PDB"] = this->GetTargetPDB();
|
||||
vars["TARGET_PDB"] = this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||
this->GetTargetPDB().c_str(), cmLocalGenerator::SHELL);
|
||||
|
||||
std::vector<cmCustomCommand> *cmdLists[3] = {
|
||||
&this->GetTarget()->GetPreBuildCommands(),
|
||||
|
|
|
@ -464,7 +464,8 @@ cmNinjaTargetGenerator
|
|||
cmNinjaVars vars;
|
||||
vars["FLAGS"] = this->ComputeFlagsForObject(source, language);
|
||||
vars["DEFINES"] = this->ComputeDefines(source, language);
|
||||
vars["TARGET_PDB"] = this->GetTargetPDB();
|
||||
vars["TARGET_PDB"] = this->GetLocalGenerator()->ConvertToOutputFormat(
|
||||
this->GetTargetPDB().c_str(), cmLocalGenerator::SHELL);
|
||||
|
||||
cmGlobalNinjaGenerator::WriteBuild(this->GetBuildFileStream(),
|
||||
comment,
|
||||
|
|
Loading…
Reference in New Issue