[CMake] GLOB segmentation fault

Alexander Neundorf a.neundorf-work at gmx.net
Sun Feb 17 14:16:49 EST 2008


On Sunday 17 February 2008, pepone.onrez wrote:
> When i add this line to CMakeLists.txt i get a segmentation fault
> cmake version 2.4-patch 6
> The problem seems to appear when the relative path ends with '/'
>     FILE (GLOB TESTS ./test/ *.cpp)

I can't reproduce it:
$ cat CMakeLists.txt
FILE (GLOB TESTS ./test/ *.cpp)
$ ls -R
.:
CMakeLists.txt  test/

./test:
a.cpp  b.cpp
$ cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/src/tests/globfault
$

Can you please create a minimal testcase which reproduces the problem ?

Alex


More information about the CMake mailing list