mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
meson: Fix Windows CUDA dependency check
Python returns 'None' string for unknown environment
This commit is contained in:
parent
d3a6eb7977
commit
d2e87e6a31
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ cuda_incdir = ''
|
|||
if host_machine.system() == 'windows'
|
||||
# On windows, CUDA_PATH env will be set by installer
|
||||
cuda_root = run_command(python3, '-c', 'import os; print(os.environ.get("CUDA_PATH"))').stdout().strip()
|
||||
if cuda_root != ''
|
||||
if cuda_root != '' and cuda_root != 'None'
|
||||
arc = ''
|
||||
if build_machine.cpu_family() == 'x86_64'
|
||||
arc = 'x64'
|
||||
|
|
Loading…
Reference in a new issue