MantisBT - CMake
View Issue Details
0007693CMakeCMakepublic2008-09-17 11:112011-05-02 14:45
Mike McQuaid 
Bill Hoffman 
normalfeatureN/A
closedwon't fix 
CMake-2-6 
CMake 2.8.4 
0007693: Provide macro to get the symlinks from a library's name
The *_LIBRARY variables provided by CMake frequently point to symlinks and, on installation, it is sometimes desirable to install the symlinks as well as the library itself.

I've attached a CMake module file that accomplishes this.

Please give me feedback. In addition, if this module is merged I would be happy to support it.
No tags attached.
? GetLibraryAndSymlinks.cmake (1,398) 2008-09-17 11:11
https://public.kitware.com/Bug/file/1720/GetLibraryAndSymlinks.cmake
Issue History
2008-09-17 11:11Mike McQuaidNew Issue
2008-09-17 11:11Mike McQuaidFile Added: GetLibraryAndSymlinks.cmake
2008-09-25 16:57Bill HoffmanNote Added: 0013591
2008-09-25 16:57Bill HoffmanStatusnew => assigned
2008-09-25 16:57Bill HoffmanAssigned To => Bill Hoffman
2008-09-26 08:42Mike McQuaidNote Added: 0013597
2008-10-01 09:16Bill HoffmanNote Added: 0013629
2008-10-01 09:46Mike McQuaidNote Added: 0013636
2009-03-18 13:33Mike McQuaidNote Added: 0015725
2011-01-06 15:29David ColeNote Added: 0024478
2011-01-06 15:29David ColeStatusassigned => resolved
2011-01-06 15:29David ColeFixed in Version => CMake 2.8.4
2011-01-06 15:29David ColeResolutionopen => won't fix
2011-05-02 14:45David ColeNote Added: 0026320
2011-05-02 14:45David ColeStatusresolved => closed

Notes
(0013591)
Bill Hoffman   
2008-09-25 16:57   
Seems a bit project specific. I am not sure it belongs in cmake.
(0013597)
Mike McQuaid   
2008-09-26 08:42   
I disagree, if you want to install a library from Linux or Mac that is built outside of your build system then doing this is a nightmare without a script like this as CMake doesn't seem to have any way of resolving symlinks.
(0013629)
Bill Hoffman   
2008-10-01 09:16   
Since this is for support of installing things not built with CMake, I think it is a bit out of the norm. Also, what will this do on windows (most likely grab .pdb files and other files that match the library). I just think this would be better not in the main CMake release. I don't want to have to support it inside CMake, but it should be easy to maintain in your project.
(0013636)
Mike McQuaid   
2008-10-01 09:46   
Fair enough.

What would be useful is functionality in CMake to resolve symlinks to an actual file, to which this script is basically a hack to try and accomplish. If that was provided by something (perhaps the by actually calling the cmake executable, to provide a platform independent way that always returned false on Windows).

I guess if this exists at all it wants to be a patch against GetPrerequisites that does this sort of thing.
(0015725)
Mike McQuaid   
2009-03-18 13:33   
If this isn't going into CMake can it be closed? Just to clean up my "view" in Mantis :)

Thanks!
(0024478)
David Cole   
2011-01-06 15:29   
Resolving since reporter says "If this isn't going into CMake can it be closed?"
(0026320)
David Cole   
2011-05-02 14:45   
Closing resolved issues that have not been updated in more than 3 months.