Ninja: make debug symbol suffix configurable by CMAKE_DEBUG_SYMBOL_SUFFIX

This commit is contained in:
Peter Kümmel 2012-07-17 11:45:19 +02:00
parent 75bbffbe1b
commit 0a3d6a19b7
1 changed files with 5 additions and 1 deletions

View File

@ -447,7 +447,11 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
std::string base;
std::string suffix;
this->GetTarget()->GetFullNameComponents(std::string(), base, suffix);
vars["TARGET_PDB"] = base + suffix + ".gdb";
std::string dbg_suffix = ".dbg";
// TODO: Where to document?
if (mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX"))
dbg_suffix = mf->GetDefinition("CMAKE_DEBUG_SYMBOL_SUFFIX");
vars["TARGET_PDB"] = base + suffix + dbg_suffix;
}
if (mf->IsOn("CMAKE_COMPILER_IS_MINGW"))