Skip to content

Commit 0a8a4fa

Browse files
committed
add missing dependency to pthread (using rwlock functions)
1 parent 8028868 commit 0a8a4fa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ endif( )
172172
# add the math library for Linux
173173
if( UNIX )
174174
set(MATH_LIBRARY "m")
175+
set(THREAD_LIBRARY "pthread")
175176
endif()
176177

177178
# set the path to specific OpenCL compiler

src/library/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ endif()
887887
set_target_properties(clBLAS PROPERTIES VERSION ${clBLAS_VERSION})
888888
set_target_properties(clBLAS PROPERTIES SOVERSION ${clBLAS_SOVERSION})
889889
set_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
893893
install( TARGETS clBLAS

0 commit comments

Comments
 (0)