Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philippe Normand
gst-plugins-bad
Commits
d2e87e6a
Commit
d2e87e6a
authored
Nov 26, 2018
by
Seungha Yang
🐑
Browse files
meson: Fix Windows CUDA dependency check
Python returns 'None' string for unknown environment
parent
d3a6eb79
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/meson.build
View file @
d2e87e6a
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment