diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-11-15 18:45:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-31 23:31:07 +0300 |
commit | b6c175b27a384a641858a50087a76149add06a90 (patch) | |
tree | 9ab4ddd5c033f5577819b71da1a27eb8e30feba4 | |
parent | 4497b6ac84016c72d408dfef8e6ee1088c0a226b (diff) |
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().
-rw-r--r-- | intern/cycles/cmake/external_libs.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/cmake/external_libs.cmake b/intern/cycles/cmake/external_libs.cmake index f92b51a9a38..7f9a9e07487 100644 --- a/intern/cycles/cmake/external_libs.cmake +++ b/intern/cycles/cmake/external_libs.cmake @@ -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 |