Skip to content

Commit 5c66ce7

Browse files
committed
cuda: fixes gpu samples build (issue 10953)
1 parent 24bed38 commit 5c66ce7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samples/gpu/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ endif()
5050
foreach(sample_filename ${all_samples})
5151
ocv_define_sample(tgt ${sample_filename} gpu)
5252
ocv_target_link_libraries(${tgt} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
53+
if(HAVE_CUDA AND NOT ANDROID)
54+
ocv_target_link_libraries(${tgt} ${CUDA_CUDA_LIBRARY})
55+
endif()
5356
if(HAVE_opencv_xfeatures2d)
5457
ocv_target_link_libraries(${tgt} opencv_xfeatures2d)
5558
endif()

0 commit comments

Comments
 (0)