[CMake] undefined reference to 'pthread_create'
Aaron Boxer
boxerab at gmail.com
Thu Feb 4 11:42:02 EST 2016
Hello,
I have a cmake project that uses C++11 threads.
I have added the lines
set (CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
CMAKE version is 3.2.2, running on Ubuntu.
When I try to build, I get the error
undefined reference to `pthread_create`
Any ideas on how to fix this?
Thanks!
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160204/9ef7dd94/attachment-0001.html>
More information about the CMake
mailing list