[CMake] Xcode deployment postprocessing

Johan Björk phb at spotify.com
Mon Sep 5 03:28:11 EDT 2011


I don't remember when the deployment stuff is executed in xcode. How do you
package your product? If you are using cpack ,you can tell it to strip the
binary before packaging it.

/Johan


On Mon, Sep 5, 2011 at 6:47 AM, Robert Bielik <robert.bielik at xponaut.se>wrote:

> Tack Johan,
>
> Johan Björk skrev 2011-09-04 09:12:
>
>  You can set it using
>> SET(CMAKE_XCODE_ATTRIBUTE_**DEPLOYMENT_POSTPROCESSING YES)
>> You might also want to enable the strip-attribute if that's what you are
>> aiming for (STRIP_INSTALLED_PRODUCT?)
>>
>
> Yup that's what I'm aiming for. However, having set that attribute (and
> STRIP_INSTALLED_PRODUCT and STRIP_STYLE which I think are set
> automagically by cmake), my binary is still PEPPERED with symbols.
>
> I guess that Spotify uses cmake too ? ;) And having checked Spotify's
> binary I can see there's virtually no exported symbol in it. So what
> else do I need to setup in order to achieve the same thing ? I've tried
> adding -fvisibility=hidden (is that only for dylibs ?) to no effect...
>
> TIA
> /Robert
> Ps. Hälsa Micke Eriksson :)
>
>
>
>  For other settings, refer to:
>> http://developer.apple.com/**library/mac/#documentation/**
>> DeveloperTools/Reference/**XcodeBuildSettingRef/1-Build_**
>> Setting_Reference/build_**setting_ref.html#//apple_ref/**
>> doc/uid/TP40003931-CH3-SW53<http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html%23//apple_ref/doc/uid/TP40003931-CH3-SW53>
>>
>> /Johan
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110905/7891bd55/attachment.htm>


More information about the CMake mailing list