[CMake] How to get stripped Release builds?
Martin Wodok
m.wodok at osb-ag.de
Tue Aug 3 03:23:59 EDT 2010
Thanks Alex,
> > 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).
but I'm not "install"ing it, and I don't want to make a difference in
calling "make" after calling "cmake" with the different configurations -
is there a way to put something into CMakeLists.txt, so it'll be
automatically done when "cmake"ing a Release Makefile?
Cheers!
Martin
--
Mit freundlichen Grüßen / Kind regards
Martin Wodok
Competence Center Off-road Control Systems (CC OCS)
OSB AG
Schwanthaler Strasse 69
D-80336 München
Tel. : +49 (0) 89 / 23 88 57 - 548
Fax : +49 (0) 89 / 23 88 57 - 400
www.osb-ag.de
www.isoaglib.com
www.vt-designer.com
------------------------------------------------------------------------------------------------------------------------------------------
OSB AG
Vorstand: Denis Sisic (Vors.), Frank Oestmann, Michael Witte
Vors. des Aufsichtsrates: Robert Strassmeir
Sitz der Gesellschaft: München
Amtsgericht München HRB 147 160
Diese Mitteilung ist ausschließlich für den beabsichtigten Empfänger bestimmt. Sie kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Jede(r) unberechtigte Gebrauch, Kopie, Weitergabe oder Veröffentlichung ist untersagt. Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie uns bitte sofort durch Antwortmail und löschen Sie diese E-Mail nebst etwaigen Anlagen und einschließlich aller angefertigten Kopien von Ihrem System.
This message is for the sole use of the intended recipient(s) and may contain trade secrets or other confidential and privileged information. Any unauthorized review, use, copy, disclosure or distribution is prohibited. If you are not the intended recipient, please inform us immediately by reply e-mail and delete this message including any attachment or copies thereof from your system.
More information about the CMake
mailing list