[CMake] CMAKE_THREAD_LIBS_INIT

Aaron Boxer boxerab at gmail.com
Tue Mar 1 10:48:42 EST 2016


Hello,
I am getting link error "undefined reference to pthread_create"

I have added ${CMAKE_THREAD_LIBS_INIT} in my cmake link line,
and I have added

FIND_PACKAGE(Threads REQUIRED).

Here is a link to my cmake file:

https://github.com/GrokImageCompression/opendcp/blob/master/libopendcp/CMakeLists.txt

Any help would be very greatly appreciated.

Thanks!
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160301/67b61eb0/attachment.html>


More information about the CMake mailing list