[cmake-developers] [CMake 0015371]: Different components for library and link using just one install command

Mantis Bug Tracker mantis at public.kitware.com
Mon Jan 26 04:17:30 EST 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15371 
====================================================================== 
Reported By:                Daniele E. Domenichelli
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15371
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-01-26 10:17 CET
Last Modified:              2015-01-26 10:17 CET
====================================================================== 
Summary:                    Different components for library and link using just
one install command
Description: 
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)


Additional Information: 
Mailing list thread here:
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/12023
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-01-26 10:17 Daniele E. DomenichelliNew Issue                               
    
======================================================================



More information about the cmake-developers mailing list