[CMake] CPACK_SOURCE_IGNORE_FILES
Eric Noulard
eric.noulard at gmail.com
Tue Jun 30 03:50:48 EDT 2009
2009/6/30 Knox, Kent <Kent.Knox at amd.com>:
> 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.
Why do you put a "/" in front of \\\\.ncb$
Could you try:
set(CPACK_SOURCE_IGNORE_FILES "/Build/;/\\\\.hg/;/\\\\.svn/;\\\\.ncb$" )
however I agree with other comment that say that you should build
out of source:
http://www.vtk.org/Wiki/CMake_FAQ#Out-of-source_build_trees
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list