From e417d0963f82b6cc4e4fabb834c004da2e8a4631 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 9 Apr 2024 14:44:00 +0200 Subject: [PATCH] configure.ac: older MSVS compat [CUDA] --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index d060a470a..273303f22 100644 --- a/configure.ac +++ b/configure.ac @@ -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