Need info on how cmake messages output is formatted

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Need info on how cmake messages output is formatted

Martin Weber-2
Hi all,

subject says most of it.

I'm trying parse the output of cmake from the generation phase (-G option) in
order to create error markers in Eclipse.
Are there any general rules on how the output is structured, especially those
multi-line messages? Any pointers to cmake sources are also welcome.

TIA Martin

--
Cd wrttn wtht vwls s mch trsr.


--

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:
https://cmake.org/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Need info on how cmake messages output is formatted

Mateusz Loskot
On Fri, 7 Sep 2018 at 20:08, Martin Weber <[hidden email]> wrote:
> Any pointers to cmake sources are also welcome.

AFAIC, the message is printed via
cmMessenger::DisplayMessage
called by
cmMessenger::IssueMessage
which is typically called by
cmake::IssueMessage

So, searching the CMake sources for
invocations of ->IssueMessage
and uses of cmake::MessageType and its members eg. cmake::FATAL_ERROR
may help to collect a picture on how messages are composed.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

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:
https://cmake.org/mailman/listinfo/cmake
--
Mateusz Loskot
http://mateusz.loskot.net
Reply | Threaded
Open this post in threaded view
|

Re: Need info on how cmake messages output is formatted

Martin Weber-2
Am Freitag, 7. September 2018, 20:48:27 CEST schrieb Mateusz Loskot:
> On Fri, 7 Sep 2018 at 20:08, Martin Weber <[hidden email]> wrote:
> > Any pointers to cmake sources are also welcome.

Thank you!

>
> AFAIC, the message is printed via
> cmMessenger::DisplayMessage
> called by
> cmMessenger::IssueMessage
> which is typically called by
> cmake::IssueMessage
>
> So, searching the CMake sources for
> invocations of ->IssueMessage
> and uses of cmake::MessageType and its members eg. cmake::FATAL_ERROR
> may help to collect a picture on how messages are composed.

Uuh, 383 references found


--
Cd wrttn wtht vwls s mch trsr.


--

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:
https://cmake.org/mailman/listinfo/cmake