It's the leading "/" in the txt portion of the expression..... get rid of it. (Eric already pointed this out in his reply to this email...)
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? On Tue, Jun 30, 2009 at 11:14 AM, Knox, Kent <[email protected]> wrote: > Yes, thank you for the response; I am in the process of moving my project > from MSVC solution to out-of-source cmake builds. > > 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: > > set( CPACK_SOURCE_IGNORE_FILES "/Build/;/\\\\.hg/;/\\\\.svn/;/\\\\.txt/" ) > > 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. > > Kent > > -----Original Message----- > From: John Drescher [mailto:[email protected]] > Sent: Monday, June 29, 2009 9:14 PM > To: Knox, Kent > Cc: [email protected] > Subject: Re: [CMake] CPACK_SOURCE_IGNORE_FILES > > On Mon, Jun 29, 2009 at 9:18 PM, Knox, Kent<[email protected]> wrote: > > I'm integrating CPack into my build system, and can't quite get > > CPACK_SOURCE_IGNORE_FILES to work right. > > > > I want to cull individual files from the source package, like .ncb files > > and .pdb files and such. It seems as though CPACK_SOURCE_IGNORE_FILES > > honors the directories that I want to exclude, but not individual files. > > For instance: > > > > set( CPACK_SOURCE_IGNORE_FILES > > "/Build/;/\\\\.hg/;/\\\\.svn/;/\\\\.ncb$/" ) > > > > will ignore the Build directory, as well as the .svn directory, but > > happily includes the .ncb files, even though I don't want them. > > > > I found a related post on stackoverflow.com from another user who seems > > to be experiencing the same problem: > > <http://stackoverflow.com/questions/727075/regular-expression-for-hidden > > -files-under-unix> > > > > Thx in advance. > > > > My advice is to use out of source builds so that no generated files > like .ncb .. are mixed in with your source. > > John > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
