MantisBT - CMake
View Issue Details
0015371CMakeCMakepublic2015-01-26 04:172016-06-10 14:31
Daniele E. Domenichelli 
Kitware Robot 
normalfeatureN/A
closedmoved 
CMake 3.1 
 
0015371: Different components for library and link using just one install command
When a library with a SOVERSION is created, the only way to install the library and the links to the library with a different component is installing the target twice using NAMELINK_SKIP and NAMELINK_ONLY. For example

  add_library(foo ${foo_SRCS})
  set_target_properties(foo PROPERTIES SOVERSION 1)
  install(TARGETS foo
          LIBRARY DESTINATION lib COMPONENT library NAMELINK_SKIP)
  install(TARGETS foo
          LIBRARY DESTINATION lib COMPONENT devel NAMELINK_ONLY)

This is redundant and not intuitive, it would be useful to be able to do this in just one command, for example:

  install(TARGETS foo
          LIBRARY DESTINATION lib COMPONENT library
                                  NAMELINK_COMPONENT devel)
Mailing list thread here:
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/12023 [^]
No tags attached.
Issue History
2015-01-26 04:17Daniele E. DomenichelliNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042702
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
(0042702)
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.