[CMake] How to get stripped Release builds?

Alexander Neundorf a.neundorf-work at gmx.net
Mon Aug 2 16:30:22 EDT 2010


On Monday 02 August 2010, Martin Wodok wrote:
> Hello all,
>
> I'm new to CMake, but have of course already searched for a solution on
> the web. I often found the info that CMake doesn't strip the binaries,
> but no solution to that.
> So is there a way to get the Release (and not the debug) build to
> produce a stripped binary (under Linux when the Makefile generator is
> being used)?
>
> I know there's something about stripping with CPack, but I'm not using
> CPack, only CMake...

$ make install/strip 
(that's also what cpack is using).

Alex


More information about the CMake mailing list