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:
parent
4497b6ac84
commit
b6c175b27a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue