--- ilmbase-2.1.0/IlmThread/CMakeLists.txt~ 2013-12-12 17:19:43.160000000 +0400 +++ ilmbase-2.1.0/IlmThread/CMakeLists.txt 2013-12-12 17:19:32.428000000 +0400 @@ -21,12 +21,13 @@ ENDIF() IF(BUILD_SHARED_LIBS) ADD_DEFINITIONS(-DILMTHREAD_EXPORTS) + ADD_DEFINITIONS ( -pthread ) ENDIF() ADD_LIBRARY ( IlmThread ${LIB_TYPE} ${ILMTHREAD_LIBRARY_SOURCES} ) -TARGET_LINK_LIBRARIES(IlmThread Iex) +TARGET_LINK_LIBRARIES(IlmThread Iex pthread) INSTALL ( TARGETS IlmThread