[CMake] CPack ignore parameter

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Thu Jul 6 10:44:58 EDT 2006


On 7/6/06, Hendrik Belitz <hbelitz at users.berlios.de> wrote:
> So the following
>
> SET(CPACK_SOURCE_IGNORE_FILES
> "/^CPack.*/"
> "/.*\\\\.kdev.*/")
>
> should result in ignoring all files Starting with 'CPack' or containing
> '.kdev', right? But why does this not lead to exclusion of files like
>
> 'CPackConfig.cmake'
>
> or
>
> 'myproject.kdevses' ?

why are you ending each regular expression with '/' ? I haven't tried
any of this, but it seems that your regular expression "/^CPack.*/"
will catch any path containing a *directory* that starts with CPack
(i.e., ".../CPackConfig.cmake/..."), which is not what you want...

Try: "/^CPack.*" and "/.*\\\\.kdev.*"

--Miguel


More information about the CMake mailing list