nvcodec: do a generic cuda tests before going into version specifics

This commit is contained in:
Marc Leeman 2019-06-07 13:27:21 +02:00 committed by Seungha Yang
parent c18fda03d9
commit 489ff8604f

View file

@ -37,6 +37,11 @@ cuda_versions = [
]
cuda_ver = ''
cuda_dep = dependency('cuda', required:false)
if cuda_dep.found()
cuda_ver = cuda_dep.version()
endif
# FIXME: use break syntax when we use meson >= '0.49'
foreach v : cuda_versions
if cuda_ver == ''