Skip to content

Commit 07412cb

Browse files
committed
configure.ac: accept also $CUDAFLAGS (without _)
1 parent e32be69 commit 07412cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ if test "$enable_static" = yes; then
4343
fi
4444
AC_SUBST(pc_cflags)
4545

46-
AC_ARG_VAR([CUDA_FLAGS], [Flags passed to nvcc])
46+
# use CUDAFLAGS (without _) from caller but use CUDA_FLAGS internaly (legacy)
47+
AC_ARG_VAR([CUDAFLAGS], [Flags passed to nvcc])
48+
CUDA_FLAGS="$CUDAFLAGS $CUDA_FLAGS"
4749

4850
if test x$enable_debug = xyes ; then
4951
COMMON_FLAGS="$COMMON_FLAGS -g -D_DEBUG -O0"

0 commit comments

Comments
 (0)