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:
Bill Hoffman 2012-03-13 17:01:25 -04:00 committed by Brad King
parent ac800f49d0
commit bba37dd517
2 changed files with 4 additions and 2 deletions

View File

@ -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(),

View File

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