summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-08-22 10:37:55 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-08-22 10:37:55 (GMT)
commit4bb4787780e51d18b9744f52bfa635818dd34ca5 (patch)
treeaee5a007867486c271601ce8939f55029ead9e20 /Source/cmNinjaNormalTargetGenerator.cxx
parent59cbc28b92bf0cd91f760985edcde625a6fbcf6c (diff)
downloadCMake-4bb4787780e51d18b9744f52bfa635818dd34ca5.zip
CMake-4bb4787780e51d18b9744f52bfa635818dd34ca5.tar.gz
CMake-4bb4787780e51d18b9744f52bfa635818dd34ca5.tar.bz2
Ninja:split out setting of msvc TARGET_PDB
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 59db295..9dc860e 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -468,16 +468,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
}
cmMakefile* mf = this->GetMakefile();
- 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(pdbPath.c_str()).c_str(),
- cmLocalGenerator::SHELL);
- EnsureParentDirectoryExists(pdbPath);
- }
- else
+ if (!this->SetMsvcTargetPdbVariable(vars))
{
// It is common to place debug symbols at a specific place,
// so we need a plain target name in the rule available.