We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fda7bb9 + 5c66ce7 commit ec0bb66Copy full SHA for ec0bb66
samples/gpu/CMakeLists.txt
@@ -50,6 +50,9 @@ endif()
50
foreach(sample_filename ${all_samples})
51
ocv_define_sample(tgt ${sample_filename} gpu)
52
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()
56
if(HAVE_opencv_xfeatures2d)
57
ocv_target_link_libraries(${tgt} opencv_xfeatures2d)
58
endif()
0 commit comments