Skip to content

Commit baafe40

Browse files
committed
Fix linking tests with libcuda
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent 4a2136e commit baafe40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ function(build_umf_test)
4444
set(LIB_DIRS ${LIB_DIRS} ${JEMALLOC_LIBRARY_DIRS})
4545
endif()
4646

47+
if(UMF_BUILD_CUDA_PROVIDER)
48+
set(LIB_DIRS ${LIB_DIRS} ${CUDA_LIBRARY_DIRS})
49+
endif()
50+
4751
set(TEST_LIBS
4852
umf_test_common
4953
${ARG_LIBS}

0 commit comments

Comments
 (0)