From 874cf45b4714d9396eeec31826e7b45e1ed67dce Mon Sep 17 00:00:00 2001 From: Ghislain Antony Vaillant Date: Tue, 4 Aug 2015 10:59:44 +0100 Subject: [PATCH] fix #93: use ${CMAKE_DL_LIBS} for libdl linkage in libclfft --- src/library/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt index f583fbe2..e0108b76 100644 --- a/src/library/CMakeLists.txt +++ b/src/library/CMakeLists.txt @@ -83,7 +83,7 @@ add_definitions( "/DCLFFT_EXPORTS" ) include_directories( ${OPENCL_INCLUDE_DIRS} ${PROJECT_BINARY_DIR}/include ../include ) add_library( clFFT ${clFFT.Files} ) -target_link_libraries( clFFT ${OPENCL_LIBRARIES} ) +target_link_libraries( clFFT ${OPENCL_LIBRARIES} ${CMAKE_DL_LIBS} ) set_target_properties( clFFT PROPERTIES VERSION ${CLFFT_VERSION} ) set_target_properties( clFFT PROPERTIES SOVERSION ${CLFFT_SOVERSION} )