Cycles: Solve linking error caused by missing pthreads library

Not sure why it worked on Debian but didn't work on Arch, could have
been some indirect link dependency or so.

Anyway, we explicitly depends on pthreads, so need to do corresponding
find_package().
This commit is contained in:
Sergey Sharybin 2014-11-15 20:45:43 +05:00
parent 4497b6ac84
commit b6c175b27a
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ if(CYCLES_STANDALONE_REPOSITORY)
include(precompiled_libs)
endif()
# PThreads
find_package(Threads REQUIRED)
set(PTHREADS_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
####
# OpenGL