From 085b6e60a4963ed065ab0ae9b69eb23587bf2540 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 29 Jul 2024 08:44:33 +0200 Subject: [PATCH] configure [Win]: add CUDA_LIB to LIBS Add CUDA_LIB to LIBS unconditionally as it is already done for other platforms except Win. In Windows, the CUDA wrapper was built outside UltraGrid (as a DLL) but this is no longer true since the commit a4c22c93f (2024-03-05) so if there is no CUDA features but still CUDA enabled (as with `--disable-all --enable-cuda`), the libs were not added for the cuda_wrapper. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ffe9ff199..9837e9d4b 100644 --- a/configure.ac +++ b/configure.ac @@ -581,8 +581,8 @@ fi if test "$FOUND_CUDA" = yes; then AC_DEFINE([HAVE_CUDA], [1], [CUDA is present on the system]) OBJS="$OBJS src/cuda_wrapper.o" + LIBS="$LIBS $CUDA_LIB" if test $system != Windows; then - LIBS="$LIBS $CUDA_LIB" POST_COMPILE_MSG="$POST_COMPILE_MSG\n***\nYou have compiled in sort of CUDA code.\nIn order to use use it compression and \ decompression, you will need to have CUDA libraries visible to your OS.\n\ If not done so, you can accomplish this by adding line:\n\