View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014742CMakeCMakepublic2014-02-07 17:202016-06-10 14:31
ReporterRoman80 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformMac OS XOSMac OS XOS Version
Product VersionCMake 2.8.12.1 
Target VersionFixed in Version 
Summary0014742: Add a FRAMEWORK_SUFFIX or FRAMEWORK_EXTENSION property to change .framework
DescriptionThe 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.
Steps To ReproduceUse 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

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0035062)
Brad King (manager)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-02-07 17:20 Roman80 New Issue
2014-02-10 10:07 Brad King Note Added: 0035062
2014-02-10 10:07 Brad King Severity minor => feature
2014-02-10 10:07 Brad King Status new => backlog
2014-02-10 10:07 Brad King Summary The 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:50 Roman80 Note Added: 0039524
2016-06-10 14:29 Kitware Robot Note Added: 0042480
2016-06-10 14:29 Kitware Robot Status backlog => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team