Re: [CMake] Building project with Boost thread, TBB, OpenCV, QT, -lpthread missing

2014-08-29 Thread felix
see http://public.kitware.com/Bug/view.php?id=10692 -- View this message in context: http://cmake.3232098.n2.nabble.com/Building-project-with-Boost-thread-TBB-OpenCV-QT-lpthread-missing-tp7588292p7588302.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by

Re: [CMake] Building project with Boost thread, TBB, OpenCV, QT, -lpthread missing

2014-08-29 Thread Sergei Nikulov
2014-08-30 1:27 GMT+04:00 felix felix.schwit...@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

[CMake] Building project with Boost thread, TBB, OpenCV, QT, -lpthread missing

2014-08-28 Thread Johannes Jordan
Hello, I am running a project that uses several libs which seemingly rely on pthread. In my CMake files, I don't explicitely refer to pthread (especially as it is a different story under different OS's like Windows). Instead I use the find_package logic, e.g.: find_package(Boost