MantisBT - CMake
View Issue Details
0006850CMakeCMakepublic2008-04-18 13:002008-05-12 09:27
Yuri 
Alex Neundorf 
normaltweakalways
closedno change required 
CMake-2-6 
 
0006850: Treat .so files for libraries with version as ARCHIVE target in INSTALL command
This is very useful to improve packaging.

When building shared library on Linux platforms (ones without import libraries) I usually get 3 files:
libMyLib.so, libMyLib.so.1 and libMyLib.so.1.0.0 where first two are symlinks, and the latest is real file. It would be very convenient to make libMyLib.so.1 and libMyLib.so.1.0.0 LIBRARY components (as it is now) and libMyLib.so ARCHIVE component (as it done for import library on Windows platforms).

Reasoning:
If you look at regular linux lib<something>.rpm and lib<something>-devel.rpm you see, that first one contains library itself and symlink SONAME pointing to library. All applications which use <something> refer to SONAME. '.so' files are necessary only for developers and therefore they go to -devel package along with header files.
If this request will be approved, I can try to make a patch.
No tags attached.
Issue History
2008-04-18 13:00YuriNew Issue
2008-04-21 18:13Bill HoffmanStatusnew => assigned
2008-04-21 18:13Bill HoffmanAssigned To => Alex Neundorf
2008-05-12 09:27Brad KingStatusassigned => closed
2008-05-12 09:27Brad KingNote Added: 0011811
2008-05-12 09:27Brad KingResolutionopen => no change required

Notes
(0011811)
Brad King   
2008-05-12 09:27   
In CMake 2.6 the install command supports the "NAMELINK_ONLY" and "NAMELINK_SKIP" options to allow separation of the symlink from the other files:

  http://www.cmake.org/HTML/cmake-2.6.html#command:install [^]