summaryrefslogtreecommitdiffstats
path: root/graphics/ilmbase/files/patch-IlmThread__CMakeLists.txt
blob: f2154559660ebf194434cb65370629822db375c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- IlmThread/CMakeLists.txt.orig	2013-11-12 01:10:49.000000000 +0400
+++ IlmThread/CMakeLists.txt	2014-03-27 00:38:30.616700075 +0400
@@ -18,6 +18,7 @@
 	)
 ENDIF()
 
+FIND_PACKAGE(Threads)
 
 IF(BUILD_SHARED_LIBS)
   ADD_DEFINITIONS(-DILMTHREAD_EXPORTS)
@@ -26,7 +27,7 @@
 ADD_LIBRARY ( IlmThread ${LIB_TYPE}
   ${ILMTHREAD_LIBRARY_SOURCES}
   )
-TARGET_LINK_LIBRARIES(IlmThread Iex)
+TARGET_LINK_LIBRARIES(IlmThread Iex ${CMAKE_THREAD_LIBS_INIT})
 
 INSTALL ( TARGETS
   IlmThread
OpenPOWER on IntegriCloud