[Bf-blender-cvs] [b6c175b] master: Cycles: Solve linking error caused by missing pthreads library

Sergey Sharybin noreply at git.blender.org
Wed Dec 31 21:32:45 CET 2014


Commit: b6c175b27a384a641858a50087a76149add06a90
Author: Sergey Sharybin
Date:   Sat Nov 15 20:45:43 2014 +0500
Branches: master
https://developer.blender.org/rBb6c175b27a384a641858a50087a76149add06a90

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().

===================================================================

M	intern/cycles/cmake/external_libs.cmake

===================================================================

diff --git a/intern/cycles/cmake/external_libs.cmake b/intern/cycles/cmake/external_libs.cmake
index f92b51a..7f9a9e0 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




More information about the Bf-blender-cvs mailing list