summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-09 14:28:44 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-06-09 14:28:44 (GMT)
commita0861931ead8cdcb6401e204ca4072c60af46101 (patch)
treec00793527b732b81291d9f0c93a56cacc870bb95 /Source/cmake.cxx
parent3c0652f8bf8974fde8b8313738272f2714b0f62b (diff)
parent86be733fa589fc1755db9274a5606f71062a6c0f (diff)
downloadCMake-a0861931ead8cdcb6401e204ca4072c60af46101.zip
CMake-a0861931ead8cdcb6401e204ca4072c60af46101.tar.gz
CMake-a0861931ead8cdcb6401e204ca4072c60af46101.tar.bz2
Merge topic 'dev/backtrace-performance'
86be733f cmGeneratorExpression: Add workaround for Borland compiler 3495ab0a tests: update unused variable test expected output 2a1b2d84 backtrace: Convert to local paths in IssueMessage a0829205 genex: remove the need for backtraces efc20569 cmake: remove dummy backtraces for IssueMessage d46c650d cmMakefile: return a backtrace
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 16dc724..e3bebbd 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2562,8 +2562,11 @@ static bool cmakeCheckStampList(const char* stampList)
//----------------------------------------------------------------------------
void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
- cmListFileBacktrace const& backtrace)
+ cmListFileBacktrace const& bt)
{
+ cmListFileBacktrace backtrace = bt;
+ backtrace.MakeRelative();
+
cmOStringStream msg;
bool isError = false;
// Construct the message header.
@@ -2786,7 +2789,7 @@ void cmake::RunCheckForUnusedVariables()
}
if(haveUnused)
{
- this->IssueMessage(cmake::WARNING, msg.str(), cmListFileBacktrace());
+ this->IssueMessage(cmake::WARNING, msg.str());
}
#endif
}