--- 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