I&#39;m trying to write a FindBlitz.cmake file for the popular Blitz++ library (<a href="http://www.oonumerics.org/blitz/">http://www.oonumerics.org/blitz/</a>). 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, &quot;Look for blitz/blitz.h in any folder matching C:\blitz-[0-9]*.[0-9]* or C:\Program Files\blitz-[0-9]*.[0-9]*&quot;. But from the docs it&#39;s not clear to me what the best way to do that is. The PATH_SUFFIXES option for FIND_FILE doesn&#39;t appear to work with regular expressions, and I don&#39;t see any way to iterate through all of the subfolders of a directory, so I&#39;m not sure what to try next. Maybe I&#39;m missing something obvious or there&#39;s a cool undocumented feature somewhere? I&#39;m just looking at the docs at 
<a href="http://cmake.org/HTML/Documentation.html">http://cmake.org/HTML/Documentation.html</a>.<br>