File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ endif( )
172172# add the math library for Linux
173173if ( UNIX )
174174 set (MATH_LIBRARY "m" )
175+ set (THREAD_LIBRARY "pthread" )
175176endif ()
176177
177178# set the path to specific OpenCL compiler
Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ endif()
887887set_target_properties (clBLAS PROPERTIES VERSION ${clBLAS_VERSION} )
888888set_target_properties (clBLAS PROPERTIES SOVERSION ${clBLAS_SOVERSION} )
889889set_target_properties ( clBLAS PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR} /staging" )
890- target_link_libraries (clBLAS ${OPENCL_LIBRARIES} ${MATH_LIBRARY} )
890+ target_link_libraries (clBLAS ${OPENCL_LIBRARIES} ${MATH_LIBRARY} ${THREAD_LIBRARY} )
891891
892892# CPack configuration; include the executable into the package
893893install ( TARGETS clBLAS
You can’t perform that action at this time.
0 commit comments