Ninja: Cannot pass a reference to an anonymous object.
This commit is contained in:
parent
0a3d6a19b7
commit
9e30289176
@ -444,9 +444,10 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
|||||||
{
|
{
|
||||||
// It is common to place debug symbols at a specific place,
|
// It is common to place debug symbols at a specific place,
|
||||||
// so we need a plain target name in the rule available.
|
// so we need a plain target name in the rule available.
|
||||||
|
std::string prefix;
|
||||||
std::string base;
|
std::string base;
|
||||||
std::string suffix;
|
std::string suffix;
|
||||||
this->GetTarget()->GetFullNameComponents(std::string(), base, suffix);
|
this->GetTarget()->GetFullNameComponents(prefix, base, suffix);
|
||||||
std::string dbg_suffix = ".dbg";
|
std::string dbg_suffix = ".dbg";
|
||||||
// TODO: Where to document?
|
// TODO: Where to document?
|
||||||
if (mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX"))
|
if (mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user