It's the leading "/" in the txt portion of the expression..... get rid of it.<div><br></div><div>(Eric already pointed this out in his reply to this email...)<br><br></div><div>With the expression the way it is, you're trying to exclude things that have literal "/.txt" in them. What you want is ".txt" right?</div>
<div><br></div><div><br><div class="gmail_quote">On Tue, Jun 30, 2009 at 11:14 AM, Knox, Kent <span dir="ltr"><<a href="mailto:Kent.Knox@amd.com">Kent.Knox@amd.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Yes, thank you for the response; I am in the process of moving my project from MSVC solution to out-of-source cmake builds.<br>
<br>
Please ignore the fact that I used a generated file in my previous example, that's tangential to the problem I'm reporting. Pretend that the set statement is:<br>
<br>
set( CPACK_SOURCE_IGNORE_FILES "/Build/;/\\\\.hg/;/\\\\.svn/;/\\\\.txt/" )<br>
<br>
I still can't get this to work. I am wondering if I have the slashes right. The funny thing is, it does properly exclude my .svn folder.<br>
<font color="#888888"><br>
Kent<br>
</font><div><div></div><div class="h5"><br>
-----Original Message-----<br>
From: John Drescher [mailto:<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>]<br>
Sent: Monday, June 29, 2009 9:14 PM<br>
To: Knox, Kent<br>
Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] CPACK_SOURCE_IGNORE_FILES<br>
<br>
On Mon, Jun 29, 2009 at 9:18 PM, Knox, Kent<<a href="mailto:Kent.Knox@amd.com">Kent.Knox@amd.com</a>> wrote:<br>
> I'm integrating CPack into my build system, and can't quite get<br>
> CPACK_SOURCE_IGNORE_FILES to work right.<br>
><br>
> I want to cull individual files from the source package, like .ncb files<br>
> and .pdb files and such. It seems as though CPACK_SOURCE_IGNORE_FILES<br>
> honors the directories that I want to exclude, but not individual files.<br>
> For instance:<br>
><br>
> set( CPACK_SOURCE_IGNORE_FILES<br>
> "/Build/;/\\\\.hg/;/\\\\.svn/;/\\\\.ncb$/" )<br>
><br>
> will ignore the Build directory, as well as the .svn directory, but<br>
> happily includes the .ncb files, even though I don't want them.<br>
><br>
> I found a related post on <a href="http://stackoverflow.com" target="_blank">stackoverflow.com</a> from another user who seems<br>
> to be experiencing the same problem:<br>
> <<a href="http://stackoverflow.com/questions/727075/regular-expression-for-hidden" target="_blank">http://stackoverflow.com/questions/727075/regular-expression-for-hidden</a><br>
> -files-under-unix><br>
><br>
> Thx in advance.<br>
><br>
<br>
My advice is to use out of source builds so that no generated files<br>
like .ncb .. are mixed in with your source.<br>
<br>
John<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>