Hi Michael, > Do you want stripping during build time? That's unusual... Only way I see to > do it is to wrap add_executable and add_library in a custom function and add > a POST_BUILD custom command and invoke the CMAKE_STRIP tool manually. Only > problem I see is to find the output location of the target.
yes, I would simply want to have the Release build have set NDEBUG and being stripped, so it's as small as possible for deployment. If it's a big deal with CMake because it's "unusual", then I probably stick to my deployment script stripping the binaries first... Keeping things simple and "usual" then... ;-) Thanks to all for their fast answers/help! 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. _______________________________________________ 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