mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 16:40:18 +00:00
Configure: use CUDA_PATH only if set
Use CUDA_PATH only if set - this prevents substitution of $CUDA_PATH/bin to /bin, which may be symlink to /usr/bin resulting in incorrect CUDA path root "/".
This commit is contained in:
@@ -1957,8 +1957,12 @@ AC_ARG_WITH(cuda,
|
||||
[CUDA_PATH=$withval
|
||||
])
|
||||
|
||||
if test -n "$CUDA_PATH"; then
|
||||
CUDA_PATH_SEP="$CUDA_PATH$PATH_SEPARATOR"
|
||||
fi
|
||||
|
||||
# nvcc is intentional here
|
||||
AC_PATH_PROG(NVCC, nvcc, [], [$CUDA_PATH/bin$PATH_SEPARATOR$PATH]dnl
|
||||
AC_PATH_PROG(NVCC, nvcc, [], [$CUDA_PATH_SEP$PATH]dnl
|
||||
[$PATH_SEPARATOR/opt/cuda/bin$PATH_SEPARATOR/usr/local/cuda/bin])
|
||||
|
||||
if test -n "$NVCC" -a $cross_compile = no -a $cuda_req != no
|
||||
|
||||
Reference in New Issue
Block a user