On Thu, Jan 28, 2016 at 10:42 PM, Stephen Kelly <steve...@gmail.com> wrote: > > Hi, > > I have pushed a extract-cmMessenger branch to my clone: > > https://github.com/steveire/CMake/commits/extract-cmMessenger
I have rebased it to master and cherry-picked some minor changes. Once those minor changes land in master, I will rebase again and then have a closer look at the individual commits. > The motivations are: > > * Decrease responsibilities of the cmake class. CMake uses too few > classes for too many things +1 > * Make it possible to make add first-class handling of messages about > missing packages (for example) to cmake-gui by making methods on > cmMessenger virtual and subclassing That sounds useful. But long term, I would rather base ccmake and cmake-gui on top of the daemon. What I would like to have, is separate subclasses for gcc-style and msvc-style messages. In gcc-style, messages look like this: <file_name>:row:column: error: <text> In msvc-style, messages look like this: <file_name>(row,column): error: <text> This would make it easier to jump to the location in IDEs (and powerful editors). > * Make it possible to emit messages through the daemon (also by > subclassing) together with backtrace and message type, relieving clients > from having to parse the text. +1 > I'm interested in what you think of the approach. Very useful overall. I'll write more once I had a closer look. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers