[cmake-developers] Cmake-server question

Paweł Rutka prutka13 at gmail.com
Thu Feb 15 04:42:11 EST 2018


We get some talk and backtraces will not probably either way can handle
multiple scenerios with functions and macros... But currenly I think Cmake
do not have any knowledge how to match for example Variables used in
initial call and one passed at the bottom to add_executable (seems like all
this data is lost while processing file, backtrace is recored but it do not
record params so you cannot backmatch anything usefull).

But this topic should probably be ask to someone in Cmake dev team how It
could be resolved.

Regards,
Pawel

2018-02-15 10:28 GMT+01:00 Tobias Hunger <tobias.hunger at gmail.com>:

> On Wed, Feb 14, 2018 at 7:27 PM, Rich Chiodo via cmake-developers
> <cmake-developers at cmake.org> wrote:
> > This would require backtraces, I believe, on every property so you can
> trace
> > all the properties back to where they’re defined. I need this too for
> Visual
> > Studio to support adding files as well.
>
> I disagree: Using backtraces for this is a pretty ugly hack!
>
> IDEs should not need to examine backtraces for a simple and common
> task like adding files to a target! Ideally server-mode would have a
> way to ask cmake where to add a source into a target and that will
> then tell you the file/line/column to add the file into.
>
> Best Regards,
> Tobias
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20180215/6bff807c/attachment.html>


More information about the cmake-developers mailing list