[CMake] Save stripped debugging information

Ian Monroe ian at monroe.nu
Wed May 15 14:06:27 EDT 2013


On Thu, Sep 22, 2011 at 12:25 AM, Lukas Anzinger <l.anzinger at gmail.com>wrote:

> Hi,
>
> I'm aware of the option CMAKE_BUILD_TYPE with which I can tell if I
> want to include debugging information or not.
>
> A very useful feature of the program objcopy is, to not strip
> debugging information from a file but to split it from it so that you
> can release a program without debugging information but can later
> debug it if you put the split debugging files in certain directories
> (more at
> http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html).
>
> Is there a CMake way to do this?
>

It's a year and a half later. Did something come of this?

I just built Qt on Linux and with the right options it gives .debug files.
That's really nice. :)
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. ;)

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130515/cd85441a/attachment.htm>


More information about the CMake mailing list