<div dir="ltr">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).<div><br></div><div>But this topic should probably be ask to someone in Cmake dev team how It could be resolved.<br><div><br></div><div>Regards,</div><div>Pawel</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-15 10:28 GMT+01:00 Tobias Hunger <span dir="ltr"><<a href="mailto:tobias.hunger@gmail.com" target="_blank">tobias.hunger@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Feb 14, 2018 at 7:27 PM, Rich Chiodo via cmake-developers<br>
<<a href="mailto:cmake-developers@cmake.org">cmake-developers@cmake.org</a>> wrote:<br>
> This would require backtraces, I believe, on every property so you can trace<br>
> all the properties back to where they’re defined. I need this too for Visual<br>
> Studio to support adding files as well.<br>
<br>
</span>I disagree: Using backtraces for this is a pretty ugly hack!<br>
<br>
IDEs should not need to examine backtraces for a simple and common<br>
task like adding files to a target! Ideally server-mode would have a<br>
way to ask cmake where to add a source into a target and that will<br>
then tell you the file/line/column to add the file into.<br>
<br>
Best Regards,<br>
Tobias<br>
</blockquote></div><br></div>