From ae8124a04c414ebd11dd411bc3296849e3373157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Mon, 16 Jul 2012 14:16:43 +0200 Subject: Ninja: also mingw needs TARGET_PDB --- Source/cmNinjaNormalTargetGenerator.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 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")) { -- cgit v0.12