diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 73ba594e..ce2dd198 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -172,6 +172,7 @@ endif( ) # add the math library for Linux if( UNIX ) set(MATH_LIBRARY "m") + set(THREAD_LIBRARY "pthread") endif() # set the path to specific OpenCL compiler diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt index 774f05b6..51648985 100644 --- a/src/library/CMakeLists.txt +++ b/src/library/CMakeLists.txt @@ -887,7 +887,7 @@ endif() set_target_properties(clBLAS PROPERTIES VERSION ${clBLAS_VERSION}) set_target_properties(clBLAS PROPERTIES SOVERSION ${clBLAS_SOVERSION}) set_target_properties( clBLAS PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/staging" ) -target_link_libraries(clBLAS ${OPENCL_LIBRARIES} ${MATH_LIBRARY}) +target_link_libraries(clBLAS ${OPENCL_LIBRARIES} ${MATH_LIBRARY} ${THREAD_LIBRARY}) # CPack configuration; include the executable into the package install( TARGETS clBLAS