<br><br><div class="gmail_quote">2013/1/20 Ian Monroe <span dir="ltr"><<a href="mailto:ian@monroe.nu" target="_blank">ian@monroe.nu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Jan 20, 2013 at 10:47 AM, Ian Monroe <<a href="mailto:ian@monroe.nu">ian@monroe.nu</a>> wrote:<br>
> Yea I guess I could do install(CODE...) and then a file(GLOB...) would<br>
> actually work.<br>
<br>
</div>Actually not so sure how to do it, since if I write something like this:<br>
install( CODE "file(GLOB installedLibrares ${CMAKE_INSTALL_PREFIX}/lib/*.so)<br>
execute_process(COMMAND strip ${installedLibrares})<br>
")<br>
<br>
It will only affect the files that were make installed, not the files<br>
used by CPack, correct? Since I don't know how to access those files,<br>
CMAKE_INSTALL_PREFIX doesn't change during CPack-time even though it<br>
installs somewhere else.<br></blockquote><div><br>What do you mean by<br>"It will only affect the files that were make installed<br> not the files used by CPack" ?<br><br>CPack does call "cmake -P cmake_install.cmake" so <br>
**all files** packaged by CPack are somehow **installed** previously.<br><br>CMAKE_INSTALL_PREFIX has a CPack-time value which is set by CPack<br>when installing file on the CPack-private location so you should escape it<br>
in order to prevent its evaluation at CMake-time, i.e.<br><br>install( CODE "file(GLOB installedLibrares \${CMAKE_INSTALL_PREFIX}/lib/*.so)<br>
execute_process(COMMAND strip ${installedLibrares})<br>
")<br><br>should work even if I'd rather create a script "strip-all-installed-file.cmake"<br>and do<br>install(SCRIPT strip-all-installed-files.cmake)<br><br>then the content of "strip-all-installed-files.cmake" does not need escaping.<br>
<br><br></div></div>-- <br>Erk<br>Le gouvernement représentatif n'est pas la démocratie -- <a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a>