configure.ac: older MSVS compat [CUDA]

This commit is contained in:
Martin Pulec
2024-04-09 14:44:00 +02:00
parent d5af762fe4
commit e417d0963f

View File

@@ -489,6 +489,10 @@ then
[])
if test -n "$CL"; then
cl_lib_path=$(realpath "$(dirname "$(command -v "$CL")")"/../../../lib/x64)
if test $? -ne 0; then
# MSVS 14.0 has it otherwhere
cl_lib_path=$(realpath "$(dirname "$(command -v "$CL")")"/../lib)
fi
CUDA_LIB="${CUDA_LIB+$CUDA_LIB }-L\"$cl_lib_path\""
FOUND_CUDA=yes
fi