[CMake] A cmake-2.4.3 segfault that is caused by a circular chain of library dependencies

Brad King brad.king at kitware.com
Thu Sep 21 09:32:06 EDT 2006


Alan W. Irwin wrote:
> Today I inadvertently formed an unwanted circular chain of library
> dependencies with the target_link_libraries command, and as a result CMake
> segfaulted.
[snip]
> software at starling> cmake ../test_cmake
> -- Check for working C compiler: gcc
> -- Check for working C compiler: gcc -- works
> -- Check size of void*
> -- Check size of void* - done
> -- Check for working CXX compiler: c++
> -- Check for working CXX compiler: c++ -- works
> -- Configuring done
> -- Generating done
> Segmentation fault

I was able to reproduce it with 2.4.3 but CVS CMake does not seem to do
this.  It will be fixed in 2.4.4.

-Brad


More information about the CMake mailing list