[CMake] How to get stripped Release builds?

Martin Wodok m.wodok at osb-ag.de
Tue Aug 3 03:26:59 EDT 2010


Thanks D3ck0r,

> Personally I'd add
> 
>  set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
>       "Set build type")
>   set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
>                "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
> 
> to my root project, and select option release default... or as part of
> the build.
> 
> think -DCMAKE_BUILD_TYPE="Release" on the command line does it

but does that switch enable stripping of the binary in the Release
build? I do have a Debug and Release build already, that's not the
point...

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