Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-11-15 18:45:43 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2014-12-31 23:31:07 +0300
commitb6c175b27a384a641858a50087a76149add06a90 (patch)
tree9ab4ddd5c033f5577819b71da1a27eb8e30feba4 /intern/cycles/cmake
parent4497b6ac84016c72d408dfef8e6ee1088c0a226b (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().
Diffstat (limited to 'intern/cycles/cmake')
-rw-r--r--intern/cycles/cmake/external_libs.cmake4
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