<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>&quot;float/[^/]*&quot;</div><div><br></div><div>(Instead of &quot;zero or more of any character&quot; it becomes &quot;zero or more of anything except for a / all the way to the end of the string&quot;... 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">&lt;<a href="mailto:filip.konvicka@logis.cz">filip.konvicka@logis.cz</a>&gt;</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( &quot;FloatVar&quot; &nbsp; &nbsp; &nbsp;REGULAR_EXPRESSION &quot;float/.*&quot; )<br>
SOURCE_GROUP( &quot;FloatVar\\BI&quot; &nbsp;REGULAR_EXPRESSION &quot;float/float/bi/.*&quot; )<br>
<br>
with the following sources in the project:<br>
<br>
ADD_LIBRARY( mylib SHARED<br>
 &nbsp;float/float.hh<br>
 &nbsp;float/float/float_var.hh<br>
 &nbsp;float/float/float_view.hh<br>
 &nbsp;float/float/bi/delta.icc<br>
 &nbsp;float/float/bi/prop.hh<br>
)<br>
<br>
ends up with all source files in &quot;FloatVar&quot; group (there is no &quot;FloatVar\\BI&quot; group). However, specifying<br>
<br>
SOURCE_GROUP( &quot;FloatVar&quot; &nbsp; &nbsp; &nbsp;REGULAR_EXPRESSION &quot;float/.*&quot; )<br>
SOURCE_GROUP( &quot;FloatVar2\\BI&quot; REGULAR_EXPRESSION &quot;float/float/bi/.*&quot; )<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&#39;ve seen, including 2.6.0 and <a href="http://2.6.1." target="_blank">2.6.1.</a> I&#39;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>