[CMake] CMAKE_THREAD_LIBS_INIT

Aaron Boxer boxerab at gmail.com
Tue Mar 1 11:17:49 EST 2016


OK, figured this one out too.  Thank again, Caleb!

On Tue, Mar 1, 2016 at 10:48 AM, Aaron Boxer <boxerab at gmail.com> wrote:

> 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/a08219ab/attachment.html>


More information about the CMake mailing list