summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-07-16 12:16:43 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-16 13:03:38 (GMT)
commitae8124a04c414ebd11dd411bc3296849e3373157 (patch)
tree66584e8c1202b54a1f6fd6c4ca1ee0f59d125e75 /Source/cmNinjaNormalTargetGenerator.cxx
parent6547f369e4c3b71071da8534fcbe141320389c82 (diff)
downloadCMake-ae8124a04c414ebd11dd411bc3296849e3373157.zip
CMake-ae8124a04c414ebd11dd411bc3296849e3373157.tar.gz
CMake-ae8124a04c414ebd11dd411bc3296849e3373157.tar.bz2
Ninja: also mingw needs TARGET_PDB
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index be7739e..19f0342 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -434,6 +434,15 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
cmLocalGenerator::SHELL);
EnsureParentDirectoryExists(path);
}
+ else
+ {
+ // It is common to place debug symbols at a specific place,
+ // so we need a plain target name in the rule available.
+ // TODO: Makefile generator could use <TARGET> because it expands
+ // to the plain target name, here it expands to a relative path.
+ // This difference could make trouble when switching to Ninja generator.
+ vars["TARGET_PDB"] = std::string(this->GetTarget()->GetName());
+ }
if (mf->IsOn("CMAKE_COMPILER_IS_MINGW"))
{