<div class="gmail_quote">On Mon, Mar 9, 2009 at 11:47 AM, Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/3/9 Adolfo Rodríguez &lt;<a href="mailto:dofo79@gmail.com">dofo79@gmail.com</a>&gt;:<br>
<div class="im">&gt; Hi,<br>
&gt;<br>
&gt; I have set up CPack to generate source and binary packages with the TGZ<br>
&gt; generator. As I understand, the compressed tar consists of the files located<br>
&gt; in:<br>
&gt; ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux-Source/TGZ/<br>
&gt;<br>
&gt; I want to exclude some files from the package_source target, so I need to<br>
&gt; reference the above path. Are there any CMAKE/CPACK variable that contains<br>
&gt; the<br>
&gt; _CPack_Packages/Linux-Source/TGZ/ part of the path? So far I haven&#39;t found<br>
&gt; any, and am currently hardcoding this string in my CPack scripts.<br>
&gt;<br>
&gt; Any hints would be appreciated,<br>
<br>
</div>I&#39;m not sure but<br>
if I remember well it should be  CPACK_TOPLEVEL_DIRECTORY.</blockquote><div><br><br>Hmm, I tried querying the names of all active variables and their values (after including CPack, of course) by doing<br>
<br>
get_cmake_property(res VARIABLES)<br>
foreach (i ${res})<br>
  message(STATUS &quot;&gt;&gt; ${i} = ${${i}}&quot;)<br>
endforeach (i)<br>
<br>
Grepping these results I found no variable named
CPACK_TOPLEVEL_DIRECTORY, nor a variable whose value contained
&quot;_CPack_Packages/Linux-Source/TGZ/&quot;. I don&#39;t know if grepping the
source code would help much, since CMake/CPack are apparently not
exposing any variables with the required information. Might give it a
try, though. Thanks.<br><br>Further clues would be greatly appreciated...<br><br>Adolfo<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
The CPack RPM generator has a &quot;debugging&quot; mode during which<br>
it shows you some of thoses vars.<br>
<br>
You may try:<br>
cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM<br>
<br>
then induce the values for the CPack TGZ generator.<br>
<br>
CPack RPM is a binary generator so source generator<br>
may use different vars. :-(<br>
<br>
The next step would be to find+grep the source code :-)<br>
<font color="#888888">--<br>
Erk<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Adolfo Rodríguez Tsouroukdissian<br><br>Robotics engineer<br>PAL ROBOTICS S.L<br><a href="http://www.pal-robotics.com">http://www.pal-robotics.com</a><br>Tel. +34.93.414.53.47<br>
Fax.+34.93.209.11.09<br>