summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2012-07-18 08:50:57 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-18 10:35:10 (GMT)
commit9e30289176c1aaee4df14e452e6590187355040f (patch)
tree4cbb34d5250d2fcb728115dc634be43d7cec1941 /Source
parent0a3d6a19b7355218ebc6de61a501626fa2aceb33 (diff)
downloadCMake-9e30289176c1aaee4df14e452e6590187355040f.zip
CMake-9e30289176c1aaee4df14e452e6590187355040f.tar.gz
CMake-9e30289176c1aaee4df14e452e6590187355040f.tar.bz2
Ninja: Cannot pass a reference to an anonymous object.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index d832a4b..4c35d25 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"))