diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2012-08-22 10:26:56 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2012-08-22 10:26:56 (GMT) |
commit | 59cbc28b92bf0cd91f760985edcde625a6fbcf6c (patch) | |
tree | 0a10e8247c04a4bdf0ea136a2811920fac2a3ab1 /Source/cmNinjaTargetGenerator.cxx | |
parent | c478d55e31e65205e4948bf8b487363891a638a4 (diff) | |
download | CMake-59cbc28b92bf0cd91f760985edcde625a6fbcf6c.zip CMake-59cbc28b92bf0cd91f760985edcde625a6fbcf6c.tar.gz CMake-59cbc28b92bf0cd91f760985edcde625a6fbcf6c.tar.bz2 |
Ninja: prepare msvc pdb cleanup
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index b6bdfdc..328ca2d 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -542,9 +542,11 @@ cmNinjaTargetGenerator if (mf->GetDefinition("MSVC_C_ARCHITECTURE_ID") || mf->GetDefinition("MSVC_CXX_ARCHITECTURE_ID")) { + const std::string pdbPath = this->GetTargetPDB(); vars["TARGET_PDB"] = this->GetLocalGenerator()->ConvertToOutputFormat( - ConvertToNinjaPath(GetTargetPDB().c_str()).c_str(), - cmLocalGenerator::SHELL); + ConvertToNinjaPath(pdbPath.c_str()).c_str(), + cmLocalGenerator::SHELL); + EnsureParentDirectoryExists(pdbPath); } if(this->Makefile->IsOn("CMAKE_EXPORT_COMPILE_COMMANDS")) |