[CMake] CPack ignore parameter

David Cole david.cole at kitware.com
Thu Jul 6 11:26:40 EDT 2006


You still have leading "/" in all of your regular expressions...

Try these: (for "begins with CPack" and "ends with ~")

"^CPack"
"~$"


Hendrik Belitz wrote:

>Am Donnerstag, 6. Juli 2006 16:44 schrieben Sie:
>
>  
>
>>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
>>    
>>
>
>Okay, I tried the following
>
>"/.*\\\\.kdev.*"
>"/.*\\\\.tar\\\\.gz"
>"/^CPack.*"
>"/~$"
>
>All files containing kdev or tar.gz get removed correctly, files starting with 
>CPack or ending with ~ do not. Any ideas?
>
>  
>


More information about the CMake mailing list