diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-03-12 21:59:42 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-06-05 16:44:19 (GMT) |
commit | 2a1b2d848693a3860f8e5f179b6c97f8c56abede (patch) | |
tree | 7987c9ba6b2be8fa15a6e7c9fe820ce512554f7e /Source/cmake.cxx | |
parent | a08292059eba4fdded6643b225640ebf559b2dac (diff) | |
download | CMake-2a1b2d848693a3860f8e5f179b6c97f8c56abede.zip CMake-2a1b2d848693a3860f8e5f179b6c97f8c56abede.tar.gz CMake-2a1b2d848693a3860f8e5f179b6c97f8c56abede.tar.bz2 |
backtrace: Convert to local paths in IssueMessage
This is the only place we care show the FilePath to the user, so defer
the expensive relative path calculation until here.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 45d3c21..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. |