MantisBT - CMake
View Issue Details
0015428CMakeCMakepublic2015-03-02 14:292015-11-02 09:13
johan andruejol 
Brad King 
normalmajoralways
closedfixed 
CMake 3.1.3 
CMake 3.3CMake 3.3 
0015428: InstallRequiredSystemLibraries.cmake does not work when installing with component
The libraries found with the InstallRequiredSystemLibraries.cmake always have the
"Unspecified" component since no component is specified. This makes project that package with the component option (CPACK_INSTALL_CMAKE_PROJECTS) not install those
libraries.

I included a patch that could be a solution to this problem.
For example, Slicer as of https://github.com/Slicer/Slicer/commit/454fed0f5f2f8ea18269f2bfdfc4733326c4c6d7 [^] does not package the windows redistributable libraries.
(See also download.slicer.org/bitstream/325826)
No tags attached.
patch 0001-Modules-Add-component-option-for-InstallRequiredSyst.patch (2,213) 2015-03-02 14:29
https://public.kitware.com/Bug/file/5396/0001-Modules-Add-component-option-for-InstallRequiredSyst.patch
Issue History
2015-03-02 14:29johan andruejolNew Issue
2015-03-02 14:29johan andruejolFile Added: 0001-Modules-Add-component-option-for-InstallRequiredSyst.patch
2015-03-03 09:21Brad KingNote Added: 0038142
2015-03-03 09:23Brad KingNote Added: 0038143
2015-03-03 09:23Brad KingAssigned To => Brad King
2015-03-03 09:23Brad KingStatusnew => resolved
2015-03-03 09:23Brad KingResolutionopen => fixed
2015-03-03 09:23Brad KingFixed in Version => CMake 3.3
2015-03-03 09:23Brad KingTarget Version => CMake 3.3
2015-03-03 09:28johan andruejolNote Added: 0038144
2015-11-02 09:13Robert MaynardNote Added: 0039722
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038142)
Brad King   
2015-03-03 09:21   
First I took this opportunity to format the documentation better:

 InstallRequiredSystemLibraries: Format documentation
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d6a320ab [^]

Then I applied your change with some refactoring:

 InstallRequiredSystemLibraries: Add option to specify install COMPONENT
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e97141c2 [^]
(0038143)
Brad King   
2015-03-03 09:23   
Meanwhile Slicer can use CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP to disable the automatic install(PROGRAMS) rule and make its own call with the COMPONENT to work with older CMake versions.
(0038144)
johan andruejol   
2015-03-03 09:28   
Great ! Thanks for your help !
(0039722)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.