[cmake-developers] [CMake 0014724]: InstallRequiredSystemLibraries does not work with component-based installers

Mantis Bug Tracker mantis at public.kitware.com
Wed Jan 29 19:12:30 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14724 
====================================================================== 
Reported By:                Craig Scott
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14724
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-29 19:12 EST
Last Modified:              2014-01-29 19:12 EST
====================================================================== 
Summary:                    InstallRequiredSystemLibraries does not work with
component-based installers
Description: 
The InstallRequiredSystemLibraries CMake module includes code which invokes the
install() command (see the end of InstallRequiredSystemLibraries.cmake).
Unfortunately, it provides no opportunity to specify an install COMPONENT to be
included in that, so when you use a component-based installer, the system
runtime libraries cannot be pulled in. It is probably relatively simple to
provide an additional CMake variable to optionally specify an install component
and if that variable is non-empty, use that as the component name in the
install() command. I'd propose something like
CMAKE_INSTALL_SYSTEM_RUNTIME_COMPONENT as the variable name, but anything that
is sane (and documented!) should be fine.

Steps to Reproduce: 
Include the InstallRequiredSystemLibraries module on a platform where it makes a
difference (currently only Windows with Visual Studio compilers I think). Make
sure the project builds a binary linked to a runtime (eg MSVC runtime) and
install that target using a COMPONENT. Then invoke the packaging as a
component-based installer.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-29 19:12 Craig Scott    New Issue                                    
======================================================================



More information about the cmake-developers mailing list