<br><br><div class="gmail_quote">2013/1/21 Ian Monroe <span dir="ltr">&lt;<a href="mailto:ian@monroe.nu" target="_blank">ian@monroe.nu</a>&gt;</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 &lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt; wrote:<br>
&gt;<br>
</div><div class="im">&gt; &quot;It will only affect the files that were make installed<br>
&gt;   not the files used by CPack&quot; ?<br>
&gt;<br>
&gt; CPack does call &quot;cmake -P cmake_install.cmake&quot; so<br>
&gt; **all files** packaged by CPack are somehow **installed** previously.<br>
&gt;<br>
&gt; CMAKE_INSTALL_PREFIX has a CPack-time value which is set by CPack<br>
&gt; when installing file on the CPack-private location so you should escape it<br>
&gt; in order to prevent its evaluation at CMake-time, i.e.<br>
<br>
</div>It doesn&#39;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&#39;t exist since it&#39;s just for the resulting RPM. (Unless<br>
CPack is running inside a chroot of it&#39;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&#39;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&#39;est pas la démocratie -- <a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a>