From b6c175b27a384a641858a50087a76149add06a90 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sat, 15 Nov 2014 20:45:43 +0500 Subject: 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(). --- intern/cycles/cmake/external_libs.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern/cycles/cmake') 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 -- cgit v1.2.3