Fix pthreads ld error

This commit is contained in:
Oleg Kalachev
2021-04-08 12:42:52 +03:00
parent a184eb00af
commit 67b7e903fd

View File

@@ -44,6 +44,10 @@ find_package(OpenCV ${_opencv_version} REQUIRED
imgproc
)
# Fix https://travis-ci.org/github/CopterExpress/clover/jobs/766318908#L6536
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)