<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">You&#39;re right. It was partly because I had my build tree as a subdirectory of my source tree. Just used to that from autotools. I also failed to ignore my .git directory, which also contributed to the slowness. With both fixed, the speed and tarball size are fine.</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thanks</div><br><div class="gmail_quote">On Tue, Sep 18, 2012 at 1:27 AM, Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com" target="_blank">eric.noulard@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/9/18 Jack Stalnaker &lt;<a href="mailto:jack.stalnaker@gmail.com">jack.stalnaker@gmail.com</a>&gt;:<br>
<div class="im">&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m not sure what I&#39;m doing wrong, but when I run cpack --config CPackSourceConfig.cmake -G TGZ, the operation runs forever and produces archives on the order of dozens of gigabytes. As far as cpack goes, I don&#39;t have much specified other than include(cpack) and the version variables.<br>

<br>
</div>May be you could send us your &quot;CPackSourceConfig.cmake&quot; ?<br>
<div class="im"><br>
&gt; I do have include(InstallRequiredSystemLibraries) as well, but that&#39;s pretty much it.<br>
<br>
</div>Which version of CPack are you using?<br>
On which platform (Windows? Linux? ...)<br>
<div class="im"><br>
<br>
&gt; I did some investigation, and the problem was pretty easy to spot. Inside the generated _CPack* directory was the installed source directory, which in turn had a nested copy of the same source directory, etc, down many, many levels, so that many gigabytes of disc space were consumed. I&#39;m sorry if this isn&#39;t specific enough, but does anyone know what&#39;s going on?<br>

<br>
</div>Is your build tree inside the source tree, i.e. the build directory is<br>
a sub-directory<br>
of the build tree?<br>
<br>
Do you set CPACK_SOURCE_IGNORE_FILES to any values<br>
in your CMakeLists.txt?<br>
<br>
<br>
Does the problem with other generator like zip ?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Erk<br>
Le gouvernement représentatif n&#39;est pas la démocratie --<br>
<a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>
</font></span></blockquote></div><br>