[CMake] Building project with Boost thread, TBB, OpenCV, QT, -lpthread missing
Sergei Nikulov
sergey.nikulov at gmail.com
Fri Aug 29 17:41:43 EDT 2014
2014-08-30 1:27 GMT+04:00 felix <felix.schwitzer at gmx.at>:
> see http://public.kitware.com/Bug/view.php?id=10692
>
>
AFAIR, to handle -lpthread switch following script can be used
find_package(Threads REQUIRED)
target_link_libraries(target-name ${CMAKE_THREAD_LIBS_INIT})
--
Best Regards,
Sergei Nikulov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140830/30addfa8/attachment-0001.html>
More information about the CMake
mailing list