You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/clblas/files/clblas-2.12-fix-pthread-lin...

19 lines
702 B

Description: fix missing linkage with pthread
Author: Ghislain Antony Vaillant <ghisvail@gmail.com>
Forwarded: no
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -889,6 +889,10 @@
set_target_properties( clBLAS PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/staging" )
target_link_libraries(clBLAS ${OPENCL_LIBRARIES} ${MATH_LIBRARY} ${THREAD_LIBRARY})
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+find_package(Threads REQUIRED)
+target_link_libraries(clBLAS ${CMAKE_THREAD_LIBS_INIT})
+
# CPack configuration; include the executable into the package
install( TARGETS clBLAS
EXPORT Library