MantisBT - CMake
View Issue Details
0014742CMakeCMakepublic2014-02-07 17:202016-06-10 14:31
Roman80 
Kitware Robot 
normalfeaturealways
closedmoved 
Mac OS XMac OS X
CMake 2.8.12.1 
 
0014742: Add a FRAMEWORK_SUFFIX or FRAMEWORK_EXTENSION property to change .framework
The target property SUFFIX and/or BUNDLE_EXTENSION doesn't rename the extension of a framework.

For e.g. an Adobe InDesign plugin is a framework but with the extension ".InDesignPlugin"

Maybe this could also be for other tools/programs too.
Use the following commands to create a framework

project(MyPlugin)

add_library(${PROJECT_NAME} SHARED ${HEADERS} ${SOURCES})
set_target_properties(${PROJECT_NAME} PROPERTIES
                      FRAMEWORK TRUE
                      SUFFIX ".InDesignPlugin")

Expected result: MyPlugin.InDesignPlugin

----------------------------------------------------------------------

set_target_properties(${PROJECT_NAME} PROPERTIES
                      FRAMEWORK TRUE
                      BUNDLE_EXTENSION ".InDesignPlugin")

Expected result: MyPlugin.InDesignPlugin

No tags attached.
Issue History
2014-02-07 17:20Roman80New Issue
2014-02-10 10:07Brad KingNote Added: 0035062
2014-02-10 10:07Brad KingSeverityminor => feature
2014-02-10 10:07Brad KingStatusnew => backlog
2014-02-10 10:07Brad KingSummaryThe target property SUFFIX and/or BUNDLE_EXTENSION doesn't rename the extension of an framework => Add a FRAMEWORK_SUFFIX or FRAMEWORK_EXTENSION property to change .framework
2015-10-07 04:50Roman80Note Added: 0039524
2016-06-10 14:29Kitware RobotNote Added: 0042480
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0035062)
Brad King   
2014-02-10 10:07   
It is common in cross-platform projects to have a shared library or module that also happens to be marked as a framework on OS X builds. Therefore it is possible that SUFFIX is already used to change the extension of the normal build on non-OS X platforms. Even if this is not the case, the proposed behavior is still specific to frameworks. Therefore I think the property name should be prefixed in "FRAMEWORK_".

This will take a bit of work because there are many places in the code that hard-code ".framework" as an extension.
(0039524)
Roman80   
2015-10-07 04:50   
It works for the "Xcode" generator if the property "XCODE_ATTRIBUTE_WRAPPER_EXTENSION" is set to "InDesignPlugin", but it does not work for the "Unix Makefiles" generator
(0042480)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.