[clblas] 58/75: add missing dependency to pthread (using rwlock functions)

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jan 24 23:30:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository clblas.

commit 0a8a4fa4bb048df7041996f236550768ea387bd6
Author: Jérôme Carretero <cJ at zougloub.eu>
Date:   Sun Jul 24 14:31:36 2016 -0400

    add missing dependency to pthread (using rwlock functions)
---
 src/CMakeLists.txt         | 1 +
 src/library/CMakeLists.txt | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 73ba594..ce2dd19 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 774f05b..5164898 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list