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.
This commit is contained in:
Martin Pulec
2024-07-29 08:44:33 +02:00
parent 7ab6fabce5
commit 085b6e60a4

View File

@@ -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\