[cmake-developers] Adding backtraces to every command
Rich Chiodo
rchiodo at microsoft.com
Wed Jan 31 13:53:39 EST 2018
We're (Microsoft) investigating tighter integration with CMake -Server and the IDE.
One of the things we need is to be able to get the location of where a property is set.
CMake has a backtracing capability but it looks to me like properties don't actually keep track of their set location.
I think the easiest way for me to do this would be to add a backtrace to every command execute (not 100% sure yet), but I wanted to query the alias for advice
1. Is this a good approach for getting the location of every Set, Link_Libraries, etc?
2. Should I only do this in server mode so as to not affect normal execution with a bunch of extra tracing?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20180131/e143e90a/attachment.html>
More information about the cmake-developers
mailing list