Re: [CMake] CMAKE_USE_PTHREADS_INIT cleanup

2016-03-20 Thread Aaron Boxer
On Sun, Mar 20, 2016 at 8:46 AM, Aaron Boxer wrote: > I recently added pthreads to my cmake program. > When I run valgrind, I get a "blocks still reachable" warning, > coming from dl_init. > > I suspect that pthreads is not cleaning up properly. Is there a way > of ensuring

[CMake] CMAKE_USE_PTHREADS_INIT cleanup

2016-03-20 Thread Aaron Boxer
I recently added pthreads to my cmake program. When I run valgrind, I get a "blocks still reachable" warning, coming from dl_init. I suspect that pthreads is not cleaning up properly. Is there a way of ensuring that the shared library for pthreads gets cleaned up correctly via cmake? i.e. a