View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015371CMakeCMakepublic2015-01-26 04:172016-06-10 14:31
ReporterDaniele E. Domenichelli 
Assigned ToKitware Robot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.1 
Target VersionFixed in Version 
Summary0015371: Different components for library and link using just one install command
DescriptionWhen 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)
Additional InformationMailing list thread here:
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/12023 [^]
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042702)
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
2015-01-26 04:17 Daniele E. Domenichelli New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042702
2016-06-10 14:29 Kitware Robot Status new => 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