File tree Expand file tree Collapse file tree 1 file changed +15
-17
lines changed
Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -30,25 +30,23 @@ if(WITH_NVCUVENC AND NOT HAVE_NVCUVENC)
3030 message (WARNING "cudacodec::VideoWriter requires Nvidia Video Codec SDK. Please resolve dependency or disable WITH_NVCUVENC=OFF" )
3131endif ()
3232
33- if (HAVE_NVCUVID OR HAVE_NVCUVENC)
34- if (ENABLE_CUDA_FIRST_CLASS_LANGUAGE)
35- list (APPEND extra_libs CUDA::cuda_driver CUDA::cudart${CUDA_LIB_EXT} )
36- else ()
37- list (APPEND extra_libs ${CUDA_CUDA_LIBRARY} )
38- endif ()
39- if (HAVE_NVCUVID)
40- list (APPEND extra_libs ${CUDA_nvcuvid_LIBRARY} )
41- endif ()
42- if (HAVE_NVCUVENC)
43- if (WIN32 )
44- list (APPEND extra_libs ${CUDA_nvencodeapi_LIBRARY} )
45- else ()
46- list (APPEND extra_libs ${CUDA_nvidia-encode_LIBRARY})
47- endif ()
48- endif ()
33+ if (ENABLE_CUDA_FIRST_CLASS_LANGUAGE)
34+ list (APPEND extra_libs CUDA::cuda_driver CUDA::cudart${CUDA_LIB_EXT} )
35+ else ()
36+ list (APPEND extra_libs ${CUDA_CUDA_LIBRARY} )
37+ endif ()
38+ if (HAVE_NVCUVID)
39+ list (APPEND extra_libs ${CUDA_nvcuvid_LIBRARY} )
40+ endif ()
41+ if (HAVE_NVCUVENC)
42+ if (WIN32 )
43+ list (APPEND extra_libs ${CUDA_nvencodeapi_LIBRARY} )
44+ else ()
45+ list (APPEND extra_libs ${CUDA_nvidia-encode_LIBRARY})
46+ endif ()
4947endif ()
5048
5149ocv_create_module (${extra_libs} )
5250
5351ocv_add_accuracy_tests ()
54- ocv_add_perf_tests ()
52+ ocv_add_perf_tests ()
You can’t perform that action at this time.
0 commit comments