MantisBT - CMake
View Issue Details
0014671CMakeCMakepublic2013-12-26 04:222016-06-10 14:31
Sascha Kratky 
Kitware Robot 
normalmajoralways
closedmoved 
MacOS X10.9.1
CMake 2.8.12 
 
0014671: install TARGETS with BUNDLE does not work for target that have the BUNDLE property set
install TARGETS with BUNDLE destination only works on executable targets that have the MACOSX_BUNDLE property set. It should also work for other target types that have the BUNDLE property set.
Add the following command the CFBundleTest project that ships with CMake after the following lines:

set_target_properties(CFBundleTest PROPERTIES
    BUNDLE 1
    BUNDLE_EXTENSION plugin
    ...)

install(TARGETS CFBundleTest BUNDLE DESTINATION "~/Library/Internet Plug-Ins")

This results in the error:

CMake Error at CMakeLists.txt:58 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "CFBundleTest".

No tags attached.
related to 0011295closed David Cole Support for "CFBundle" (.plugin) types on Mac OS 
Issue History
2013-12-26 04:22Sascha KratkyNew Issue
2014-01-02 15:04Brad KingNote Added: 0034897
2014-01-02 15:05Brad KingRelationship addedrelated to 0011295
2016-06-10 14:29Kitware RobotNote Added: 0042453
2016-06-10 14:29Kitware RobotStatusnew => 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
(0034897)
Brad King   
2014-01-02 15:04   
The CFBundleTest target is created with

 add_library( ... MODULE ...)

A MODULE library requires a LIBRARY DESTINATION to install:

 http://www.cmake.org/cmake/help/v2.8.12/cmake.html#command:install [^]

I'm not familiar with the CFBundle feature though.
(0042453)
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.