summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-07-17 09:45:19 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-17 09:45:19 (GMT)
commit0a3d6a19b7355218ebc6de61a501626fa2aceb33 (patch)
tree924ffdaadaa77599e76a54ac3de5545b2dc817d9 /Source/cmNinjaNormalTargetGenerator.cxx
parent75bbffbe1b66070df8ac68f1d8b556e7cb0d087c (diff)
downloadCMake-0a3d6a19b7355218ebc6de61a501626fa2aceb33.zip
CMake-0a3d6a19b7355218ebc6de61a501626fa2aceb33.tar.gz
CMake-0a3d6a19b7355218ebc6de61a501626fa2aceb33.tar.bz2
Ninja: make debug symbol suffix configurable by CMAKE_DEBUG_SYMBOL_SUFFIX
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 6d13a9a..d832a4b 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -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"))