[CMake] find folder matching regex?

2007-10-21 Thread Joseph Garvin
I'm trying to write a FindBlitz.cmake file for the popular Blitz++ library ( http://www.oonumerics.org/blitz/). On windows, the folder containing blitz is usually of the form C:/blitz-x.x (where x.x is a version number). I would like to say, Look for blitz/blitz.h in any folder matching

Re: [CMake] find folder matching regex?

2007-10-21 Thread Brandon Van Every
On 10/21/07, Joseph Garvin [EMAIL PROTECTED] wrote: and I don't see any way to iterate through all of the subfolders of a directory, FILE(GLOB ...) If the globbing expressions aren't enough for your search, then get the output, then run a STRING(REGEX ...) on them. Cheers, Brandon Van Every