<div class="gmail_quote">On Mon, Mar 9, 2009 at 11:47 AM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></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 <<a href="mailto:dofo79@gmail.com">dofo79@gmail.com</a>>:<br>
<div class="im">> Hi,<br>
><br>
> I have set up CPack to generate source and binary packages with the TGZ<br>
> generator. As I understand, the compressed tar consists of the files located<br>
> in:<br>
> ${CMAKE_BINARY_DIR}/_CPack_Packages/Linux-Source/TGZ/<br>
><br>
> I want to exclude some files from the package_source target, so I need to<br>
> reference the above path. Are there any CMAKE/CPACK variable that contains<br>
> the<br>
> _CPack_Packages/Linux-Source/TGZ/ part of the path? So far I haven't found<br>
> any, and am currently hardcoding this string in my CPack scripts.<br>
><br>
> Any hints would be appreciated,<br>
<br>
</div>I'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 ">> ${i} = ${${i}}")<br>
endforeach (i)<br>
<br>
Grepping these results I found no variable named
CPACK_TOPLEVEL_DIRECTORY, nor a variable whose value contained
"_CPack_Packages/Linux-Source/TGZ/". I don'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 "debugging" 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>