Skip to content

Commit ec0bb66

Browse files
committed
Merge pull request opencv#10954 from whizzzkid:master
2 parents fda7bb9 + 5c66ce7 commit ec0bb66

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)