From 584b0692468ea10663282212c7b15fedcc79c6c8 Mon Sep 17 00:00:00 2001 From: Alexey Rivkin Date: Fri, 10 Feb 2023 19:27:25 +0200 Subject: [PATCH] BUILD/DEBIAN: Conditional CUDA support based on PATH --- debian/rules.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules.in b/debian/rules.in index dd63c13b8c77..4084b68860a4 100755 --- a/debian/rules.in +++ b/debian/rules.in @@ -9,7 +9,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -CUDA_OPT = $(shell echo ${DEB_BUILD_PROFILES} | grep -qw cuda \ +CUDA_OPT = $(shell echo ${PATH} | grep -qw cuda \ && echo --with-cuda=/usr/local/cuda || echo --without-cuda) %: