at master 931 B view raw
1--- a/src/fileformat/CMakeLists.txt 2016-05-26 11:31:23.000000000 +0200 2+++ b/src/fileformat/CMakeLists.txt 2016-07-21 23:19:56.510958771 +0200 3@@ -53,13 +53,15 @@ 4 if( OPENEXR_FOUND ) 5 include_directories("${OPENEXR_INCLUDE_DIR}") 6 7+ find_package (Threads) 8+ 9 add_executable(pfsinexr pfsinexr.cpp "${GETOPT_OBJECT}") 10- target_link_libraries(pfsinexr pfs ${OPENEXR_LIBRARIES}) 11+ target_link_libraries(pfsinexr pfs ${OPENEXR_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) 12 install (TARGETS pfsinexr DESTINATION bin) 13 install (FILES pfsinexr.1 DESTINATION ${MAN_DIR}) 14 15 add_executable(pfsoutexr pfsoutexr.cpp "${GETOPT_OBJECT}") 16- target_link_libraries(pfsoutexr pfs ${OPENEXR_LIBRARIES}) 17+ target_link_libraries(pfsoutexr pfs ${OPENEXR_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) 18 install (TARGETS pfsoutexr DESTINATION bin) 19 install (FILES pfsoutexr.1 DESTINATION ${MAN_DIR}) 20 endif( OPENEXR_FOUND )