diff -up luxrays-6907bd2846bf/samples/smallluxgpu/CMakeLists.txt.ld luxrays-6907bd2846bf/samples/smallluxgpu/CMakeLists.txt --- luxrays-6907bd2846bf/samples/smallluxgpu/CMakeLists.txt.ld 2012-10-02 20:48:49.000000000 +0200 +++ luxrays-6907bd2846bf/samples/smallluxgpu/CMakeLists.txt 2012-10-04 00:26:04.072900252 +0200 @@ -176,6 +176,7 @@ add_executable(slg ${SMALLLUXGPU_SRCS}) TARGET_LINK_LIBRARIES(slg luxrays ${GLEW_LIBRARY} ${OPENGL_LIBRARY}) TARGET_LINK_LIBRARIES(slg ${OpenCL_LIBRARY}) TARGET_LINK_LIBRARIES(slg ${GLUT_LIBRARY}) +TARGET_LINK_LIBRARIES(slg -lpthread) # This instructs FREEGLUT to emit a pragma for the static version SET_TARGET_PROPERTIES(slg PROPERTIES COMPILE_DEFINITIONS FREEGLUT_STATIC)