MantisBT - CMake
View Issue Details
0014123CMakeCMakepublic2013-05-02 06:132013-08-20 12:52
Gregoire 
Alex Neundorf 
normalminoralways
closedfixed 
CMake 2.8.10.2 
CMake 2.8.12CMake 2.8.12 
0014123: .dll.a files should not be stripped by cmake when using mingw toolchain
.dll and .dll.a files are stripped by cmake in the cmake_install files.
mingw does not strip .dll.a files when using the -s linker option, only .dll.

The result is that some executable cannot link the dll when .dll.a files are stripped.
No tags attached.
patch prevent_strip_import_libraries.patch (740) 2013-06-11 19:08
https://public.kitware.com/Bug/file/4788/prevent_strip_import_libraries.patch
Issue History
2013-05-02 06:13GregoireNew Issue
2013-05-02 08:08Brad KingAssigned To => Alex Neundorf
2013-05-02 08:08Brad KingStatusnew => assigned
2013-06-04 07:06GregoireNote Added: 0033220
2013-06-11 19:08Alex DeryskybaFile Added: prevent_strip_import_libraries.patch
2013-06-11 19:11Alex DeryskybaNote Added: 0033274
2013-06-28 15:09Alex NeundorfNote Added: 0033400
2013-06-28 15:09Alex NeundorfStatusassigned => closed
2013-06-28 15:09Alex NeundorfResolutionopen => fixed
2013-08-20 12:52Robert MaynardFixed in Version => CMake 2.8.12
2013-08-20 12:52Robert MaynardTarget Version => CMake 2.8.12

Notes
(0033220)
Gregoire   
2013-06-04 07:06   
I also saw that .lib part of .dll with MSVC are stripped too.
Is this done on purpose?
(0033274)
Alex Deryskyba   
2013-06-11 19:11   
I have attached a patch (prevent_strip_import_libraries.patch) that prevents stripping of import libraries. I hope it will be useful for you and will be included in one of the next releases.
(0033400)
Alex Neundorf   
2013-06-28 15:09   
Thanks for the patch.
I committed it and merged it into next.
It should be in 2.8.12.