enhancement request: include link commands in compile_commands.json
See title; this would enable tools to identify the complete set of translation units that contribute to an executable target (so that e.g. if you configure a code-browsing tool to browse the C/C++ files for executable 'foo' and then tell it to jump to the definition of 'main', then there will be exactly one source location to which it can jump).
I'd be happy to write the patch myself, though at the moment I'm completely unfamiliar with the CMake source, so if anyone would like to make suggestions about what would need to change, that would be most appreciated!