<div dir="ltr">It looks like it must be a bug of some sort if it works with one name, but it does not work with another name...<br><br><div>However, you do have overlapping regular expressions. All of your files that match the 2nd regular expression also match the 1st regular expression.</div>
<div><br></div><div>A better 1st regular expression might be:</div><div>"float/[^/]*"</div><div><br></div><div>(Instead of "zero or more of any character" it becomes "zero or more of anything except for a / all the way to the end of the string"... which does not match anything that the 2nd expression matches.)</div>
<div><br></div><div>If you can reproduce this with a simple example project, zip up the source tree for it and submit it as a bug at <a href="http://public.kitware.com/Bug">http://public.kitware.com/Bug</a></div><div><br>
</div><div><br></div><div>Thanks,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 3:53 AM, Filip Konvička <span dir="ltr"><<a href="mailto:filip.konvicka@logis.cz">filip.konvicka@logis.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
defining the following:<br>
<br>
SOURCE_GROUP( "FloatVar" REGULAR_EXPRESSION "float/.*" )<br>
SOURCE_GROUP( "FloatVar\\BI" REGULAR_EXPRESSION "float/float/bi/.*" )<br>
<br>
with the following sources in the project:<br>
<br>
ADD_LIBRARY( mylib SHARED<br>
float/float.hh<br>
float/float/float_var.hh<br>
float/float/float_view.hh<br>
float/float/bi/delta.icc<br>
float/float/bi/prop.hh<br>
)<br>
<br>
ends up with all source files in "FloatVar" group (there is no "FloatVar\\BI" group). However, specifying<br>
<br>
SOURCE_GROUP( "FloatVar" REGULAR_EXPRESSION "float/.*" )<br>
SOURCE_GROUP( "FloatVar2\\BI" REGULAR_EXPRESSION "float/float/bi/.*" )<br>
<br>
creates two groups, FloatVar and FloatVar2\BI, with files correctly placed according to the regexs.<br>
<br>
This happens in all CMake versions I've seen, including 2.6.0 and <a href="http://2.6.1." target="_blank">2.6.1.</a> I'm using the MSVC 2008 generator with MSVC 2008 EE.<br>
<br>
Is this a bug, or am I doing something wrong?<br>
<br>
Best Regards,<br>
Filip<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div></div>