Skip to content

Commit 0e5af30

Browse files
committed
configure.ac: accept also CUDAFLAGS
CUDA_FLAGS were used to get the flags passed to nvcc. But cmake uses CUDAFLAGS and it is perhaps more convenient (similar to CFLAGS, CXXFLAGS) so accept both.
1 parent 20a3ed6 commit 0e5af30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333
# -------------------------------------------------------------------------------------------------
3434
POST_COMPILE_MSG=""
3535
CXXFLAGS="${CXXFLAGS+$CXXFLAGS }-std=gnu++17"
36-
CUDA_FLAGS="${CUDA_FLAGS-}"
36+
CUDA_FLAGS="$CUDA_FLAGS${CUDA_FLAGS:+${CUDAFLAGS:+ }}$CUDAFLAGS"
3737
INC="${INC-}"
3838
LDFLAGS="${LDFLAGS-}"
3939
LIB_MODULES= # modules libraries
@@ -431,7 +431,7 @@ fi
431431
AC_ARG_VAR([AJA_DIRECTORY], [Directory to AJA NTV2 SDK.])
432432
AC_ARG_VAR([BLUE_LATEST_SDK], [Placement of Bluefish444 SDK.])
433433
AC_ARG_VAR([CINEFORM_DIRECTORY], [Directory to Cineform SDK.])
434-
AC_ARG_VAR([CUDA_FLAGS], [Flags to be passed to CUDA compiler, eg. -arch=native])
434+
AC_ARG_VAR([CUDA_FLAGS], [Flags to be passed to CUDA compiler, eg. -arch=native; alterntatively CUDAFLAGS])
435435
AC_ARG_VAR([CUDA_PATH], [Directory of your Nvidia toolkit instalation.])
436436
AC_ARG_VAR([DELTACAST_DIRECTORY], [Placement of VideoMasterHD directory (Deltacast).])
437437
AC_ARG_VAR([DVS_DIRECTORY], [Path to DVS installation.])

0 commit comments

Comments
 (0)