<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 22, 2011 at 12:25 AM, Lukas Anzinger <span dir="ltr"><<a href="mailto:l.anzinger@gmail.com" target="_blank">l.anzinger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I'm aware of the option CMAKE_BUILD_TYPE with which I can tell if I<br>
want to include debugging information or not.<br>
<br>
A very useful feature of the program objcopy is, to not strip<br>
debugging information from a file but to split it from it so that you<br>
can release a program without debugging information but can later<br>
debug it if you put the split debugging files in certain directories<br>
(more at <a href="http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html" target="_blank">http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html</a>).<br>
<br>
Is there a CMake way to do this?<br></blockquote><div><br><div>It's a year and a half later. Did something come of this? <br><br>I just built Qt on Linux and with the right options it gives .debug files. That's really nice. :)<br>
</div>Right
now I have something working in my project where it builds with debug info, extracts
the debug info (I'm using Google Breakpad) and then strip the binary.
But a "ReleaseWithSeperateDebugInfo" option would be the ideal. Mostly for peace of mind since I'm not a big fan of my stripping hack. ;)<br><br></div><div>Ian<br></div></div></div></div>