Commit d2e87e6a authored by Seungha Yang's avatar Seungha Yang 🐑
Browse files

meson: Fix Windows CUDA dependency check

Python returns 'None' string for unknown environment
parent d3a6eb79
Pipeline #9878 passed with stages
in 4 minutes and 16 seconds
......@@ -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'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment