summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2012-03-13 21:01:25 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-16 14:16:45 (GMT)
commitbba37dd51753165ce3ade61badb61c07e1058e90 (patch)
treed9a96f5c2a880afed50718f72d950f8edbf06e70 /Source/cmNinjaTargetGenerator.cxx
parentac800f49d07337df79565c77fe0847222ade520b (diff)
downloadCMake-bba37dd51753165ce3ade61badb61c07e1058e90.zip
CMake-bba37dd51753165ce3ade61badb61c07e1058e90.tar.gz
CMake-bba37dd51753165ce3ade61badb61c07e1058e90.tar.bz2
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.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 8fa367f..b9f997d 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -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,