-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Description
On building the library, the Debian packaging build system reports a missing linkage with libdl for libclSPARSE.
The following patch fixed the issue:
--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -234,7 +234,7 @@
)
# PRIVATE linking prevents transitive library linking of the clBLAS libraries
-target_link_libraries( clSPARSE PRIVATE ${OPENCL_LIBRARIES} ) #${clBLAS_LIBRARIES} )
+target_link_libraries( clSPARSE PRIVATE ${OPENCL_LIBRARIES} ${CMAKE_DL_LIBS} ) #${clBLAS_LIBRARIES} )
# Package that helps me set visibility for function names exported from shared library
GENERATE_EXPORT_HEADER( clSPARSE )