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

On Mon, Aug 2, 2010 at 8:58 AM, Martin Wodok <[email protected]> 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...
>
> Thanks for any help/hints,
> Martin
>
> PS: I hope the mail won't appear in the mailing-list more than once, if so, 
> sorry for that.
>
> --
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to