pepone@sirius ~/kk/cmake-glob-bug $ cat CMakeLists.txt<br>FILE (GLOB TESTS ./test/ *.cpp)<br><br>ls -liha test/<br>total 0<br>3635635 drwxr-xr-x 3 pepone pepone&nbsp; 72 2008-02-19 04:56 .<br>&nbsp;998787 drwxr-xr-x 4 pepone pepone 160 2008-02-19 04:52 ..<br>
3635679 drwxr-xr-x 2 pepone pepone&nbsp; 48 2008-02-19 04:56 .svn<br><br><br>Problem seems to appear when test contains directories files that`s begin with &#39;.&#39;<br><br>pepone@sirius ~/kk/cmake-glob-bug/build $ gdb cmake<br>
GNU gdb 6.7.1<br>Copyright (C) 2007 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<br>This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.&nbsp; Type &quot;show copying&quot;<br>and &quot;show warranty&quot; for details.<br>This GDB was configured as &quot;i486-pc-linux-gnu&quot;...<br>(no debugging symbols found)<br>
Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;.<br>(gdb) run ..<br>Starting program: /usr/bin/cmake ..<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>
(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>(no debugging symbols found)<br>-- Check for working C compiler: /usr/bin/gcc<br>-- Check for working C compiler: /usr/bin/gcc -- works<br>
-- Check size of void*<br>-- Check size of void* - done<br>-- Check for working CXX compiler: /usr/bin/c++<br>-- Check for working CXX compiler: /usr/bin/c++ -- works<br><br>Program received signal SIGSEGV, Segmentation fault.<br>
0x0818cdb5 in cmsys::RegularExpression::find ()<br>(gdb) bt<br>#0&nbsp; 0x0818cdb5 in cmsys::RegularExpression::find ()<br>#1&nbsp; 0x0818be1e in cmsys::Glob::ProcessDirectory ()<br>#2&nbsp; 0x0818c13d in cmsys::Glob::FindFiles ()<br>#3&nbsp; 0x08111e38 in cmFileCommand::HandleGlobCommand ()<br>
#4&nbsp; 0x08113ef4 in cmFileCommand::InitialPass ()<br>#5&nbsp; 0x08124f9c in cmCommand::InvokeInitialPass ()<br>#6&nbsp; 0x080d86bd in cmMakefile::ExecuteCommand ()<br>#7&nbsp; 0x080db0b4 in cmMakefile::ReadListFile ()<br>#8&nbsp; 0x08162502 in cmLocalGenerator::Configure ()<br>
#9&nbsp; 0x0816ab8a in cmLocalUnixMakefileGenerator3::Configure ()<br>#10 0x0814c28b in cmGlobalGenerator::Configure ()<br>#11 0x080ff7bf in cmake::Configure ()<br>#12 0x08102fd9 in cmake::Run ()<br>#13 0x080c98e8 in do_cmake ()<br>
#14 0x080c9b94 in main ()<br>