From 9e30289176c1aaee4df14e452e6590187355040f Mon Sep 17 00:00:00 2001 From: Nicolas Despres Date: Wed, 18 Jul 2012 10:50:57 +0200 Subject: [PATCH] Ninja: Cannot pass a reference to an anonymous object. --- Source/cmNinjaNormalTargetGenerator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index d832a4b1f..4c35d250b 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -444,9 +444,10 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement() { // It is common to place debug symbols at a specific place, // so we need a plain target name in the rule available. + std::string prefix; std::string base; std::string suffix; - this->GetTarget()->GetFullNameComponents(std::string(), base, suffix); + this->GetTarget()->GetFullNameComponents(prefix, base, suffix); std::string dbg_suffix = ".dbg"; // TODO: Where to document? if (mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX"))