<br><br><div class="gmail_quote">2013/1/21 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 1:03 PM, Eric Noulard <<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>> wrote:<br>
><br>
</div><div class="im">> "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>
</div>It doesn't seem to work. CMAKE_INSTALL_PREFIX during CPack/RPM time is<br>
apparently being set to CPACK_PACKAGING_INSTALL_PREFIX, ie a directory<br>
that doesn't exist since it's just for the resulting RPM. (Unless<br>
CPack is running inside a chroot of it's own making at that point??)<br>
<br>
<br>
So with something like this in the strip-all-installed-files.cmake<br>
script being executed via install(SCRIPT...):<br>
execute_process(COMMAND ls ${CMAKE_INSTALL_PREFIX} OUTPUT_VARIABLE lsresults)<br>
<br>
I get an error that the directory doesn't exist.<br></blockquote><div><br>Right I forgot one important bit, CPack plays with CMAKE_INSTALL_PREFIX and DESTDIR<br><br>could you try that:<br><br>execute_process(COMMAND ls $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} OUTPUT_VARIABLE lsresults)<br clear="all">
</div></div><br>-- <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>