[CMake] CPACK_SOURCE_IGNORE_FILES

Knox, Kent Kent.Knox at amd.com
Mon Jun 29 21:18:35 EDT 2009


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.



More information about the CMake mailing list