summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-02-21 20:18:05 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-02-21 20:18:05 (GMT)
commit54bd175eea66704a879fc72278cdbb49efdd801c (patch)
tree3c5c19e5b2a2e8f9bb33c32c7c8df235ebe48021 /Source/cmNinjaNormalTargetGenerator.cxx
parenta1a30340a2eb0174f9f6911ee1e2cf4a36eaac96 (diff)
downloadCMake-54bd175eea66704a879fc72278cdbb49efdd801c.zip
CMake-54bd175eea66704a879fc72278cdbb49efdd801c.tar.gz
CMake-54bd175eea66704a879fc72278cdbb49efdd801c.tar.bz2
Ninja: windows msvc: create for each target a .pdb file
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 9294a01..6e08bca 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -136,6 +136,7 @@ cmNinjaNormalTargetGenerator
vars.Target = "$out";
vars.TargetSOName = "$SONAME";
vars.TargetInstallNameDir = "$INSTALLNAME_DIR";
+ vars.TargetPDB = "$TARGET_PDB";
// Setup the target version.
std::string targetVersionMajor;
@@ -361,6 +362,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
targetOutputImplib.c_str(), cmLocalGenerator::SHELL);
}
+ vars["TARGET_PDB"] = this->GetTargetPDB();
+
std::vector<cmCustomCommand> *cmdLists[3] = {
&this->GetTarget()->GetPreBuildCommands(),
&this->GetTarget()->GetPreLinkCommands(),