On Fri, Mar 23, 2012 at 4:20 PM, Kyle Leber <span dir="ltr"><<a href="mailto:kleber@fastemail.us">kleber@fastemail.us</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>I'm using cmake 2.8 and having an issue when I issue a 'make install/strip'. My project includes two libraries: one static and one shared. The shared library gets properly stripped, but the static one does not. Do I need to specify a special parameter to get the static library to be stripped or am I doing something else wrong?<br>
<br>Thanks for the help!<br><br>OS: Ubuntu 10.10<br>Compiler: g++ 4.4.5<span class="HOEnZb"><font color="#888888"><br><br>Kyle<br>
</font></span></blockquote></div><br>OK, I've done a little more research. It looks like cmake_install.cmake that is generated in my build directory has install lines handling the shared libraries and the static libraries.<br>
<br>After the shared library is installed, there's a section like this:<br><br>IF(EXISTS "${file}" AND<br> NOT IS_SYMLINK "${file}")<br> IF(CMAKE_INSTALL_DO_STRIP)<br> EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "${file}")<br>
ENDIF(CMAKE_INSTALL_DO_STRIP)<br> ENDIF()<br><br>That clearly strips the files after they are installed. However, in the section that installs my static library there is no such check to handle stripping the library. Is this a missing feature in CMake, or is there a reason this is not supported? I can run /usr/bin/strip on my .a static library without issue so I think it's a reasonable thing to expect. <br>
<br>Any help is appreciated! Thanks, Kyle.<br>