[cmake-developers] Rename suffix of Mac OS Framework

Roman Wüger roman.wueger at gmx.at
Wed Oct 7 04:48:04 EDT 2015


Hi Brad,

A use case for example is when an InDesign plugin should be developed. The InDesign plugin on Mac OS is a framework with the file extension ".InDesignPlugin".

It works if the "Xcode" generator is used and the target property "XCODE_ATTRIBUTE_WRAPPER_EXTENSION" is set to "InDesignPlugin".
But it doesn't work if the "Unix Makefiles" generator is used.

See also https://cmake.org/Bug/view.php?id=14742

Best Regards
Roman

> Am 05.10.2015 um 17:31 schrieb Brad King <brad.king at kitware.com>:
> 
>> On 10/01/2015 04:07 AM, Roman Wüger wrote:
>> set_target_properties(${PROJECT_NAME} PROPERTIES FRAMEWORK TRUE)
>> 
>> Is there a way to rename the suffix ".framework"?
> 
> Not currently.  It is hard-coded here:
> 
> https://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGeneratorTarget.cxx;hb=679a5d21#l2981
> 
> What is the use case for changing the framework extension?
> Doing so breaks the basic layout defined in "man ld":
> 
>     -framework name[,suffix]
>                 This option tells the linker to search for `name.frame-
>                 work/name' the framework search path.  If the optional
>                 suffix is specified the framework is first searched for
>                 the name with the suffix and then without (e.g. look
>                 for `name.framework/name_suffix' first, if not there
>                 try `name.framework/name').
> 
> -Brad
> 


More information about the cmake-developers mailing list