--- IlmThread/CMakeLists.txt.orig	2017-11-17 23:00:23 UTC
+++ IlmThread/CMakeLists.txt
@@ -18,6 +18,7 @@ IF (WIN32)
 	)
 ENDIF()
 
+FIND_PACKAGE(Threads)
 
 IF(BUILD_SHARED_LIBS)
   ADD_DEFINITIONS(-DILMTHREAD_EXPORTS)
@@ -26,7 +27,7 @@ ENDIF()
 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
