[CMake] CPack parameters

2006-07-06 Thread Hendrik Belitz
hi, I'm just playing around a little bit with CPack and its features here. I recently used CPack for the generation of source packages, but needed to learn that it will just take nearly all the stuff present in the source tree and throws it into the archive. I assume that I can use

Re: [CMake] CPack parameters

2006-07-06 Thread Hendrik Belitz
Hi Andy, I just tried the following. I added SET(CPACK_SOURCE_IGNORE_FILES /latex/;/xml/;/^CMake/;/\.kdev/) to my CMakeLists.txt, run cmake. and afterwards created a source package using cpack -G TGZ --config CPackSourceConfig.cmake My intention was to exclude my documentation directories,

Re: [CMake] Fortran bug? Use statement problems

2006-07-06 Thread Brad King
Daniel Sands wrote: I'm not a Fortran programmer, but I have some code to compile into my program. It came up with false dependencies when I tried to compile it in the CMAKE framework though. The problem is traced to comment lines such as C use cross product of vectors ... Should a 'use'

Re: [CMake] CPack parameters

2006-07-06 Thread Jan Woetzel
Hendrik Belitz wrote: Hi Andy, I just tried the following. I added SET(CPACK_SOURCE_IGNORE_FILES /latex/;/xml/;/^CMake/;/\.kdev/) Setting CPACK_IGNORE_FILES works, here. At least for listing individual files. I think your regular expression is wrong. E..g. ignore foo.xml:

Re: [CMake] CPack parameters

2006-07-06 Thread Jan Woetzel
Hendrik, and you know you need to escape each \ in your camke code? (that was my first mistake). Thus one backslash in regular expressions becomes four e.g. to escape the dot in CMakeLists.txt E.g. SET(CPACK_SOURCE_IGNORE_FILES .*.xml # globbing *.xml /CVS/ /.svn/

Re: [CMake] CPack ignore parameter

2006-07-06 Thread Jan Woetzel
Hendrik Belitz wrote: So the following SET(CPACK_SOURCE_IGNORE_FILES /^CPack.*/ /.*.kdev.*/) should result in ignoring all files Starting with 'CPack' or containing '.kdev', right? No. Note the / forward slashes - they catch directories. Start playing with .*.kdev See

Re: [CMake] CPack ignore parameter

2006-07-06 Thread Miguel A. Figueroa-Villanueva
On 7/6/06, Hendrik Belitz [EMAIL PROTECTED] 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

Re: [CMake] CPack ignore parameter

2006-07-06 Thread Hendrik Belitz
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

Re: [CMake] CPack ignore parameter

2006-07-06 Thread David Cole
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

Re: [CMake] CPack ignore parameter

2006-07-06 Thread David Cole
Or perhaps ^/CPack for begins with /CPack or perhaps .*/CPack for contains /CPack David Cole wrote: 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