From 0a8a4fa4bb048df7041996f236550768ea387bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Carretero?= Date: Sun, 24 Jul 2016 14:31:36 -0400 Subject: [PATCH] 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 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