From 0e5af303553ffc4eec425ff95dee01425af5dbdc Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 14 Nov 2024 11:18:56 +0100 Subject: [PATCH] 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. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index ac4de97c9..599cda4fe 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,7 @@ fi # ------------------------------------------------------------------------------------------------- POST_COMPILE_MSG="" CXXFLAGS="${CXXFLAGS+$CXXFLAGS }-std=gnu++17" -CUDA_FLAGS="${CUDA_FLAGS-}" +CUDA_FLAGS="$CUDA_FLAGS${CUDA_FLAGS:+${CUDAFLAGS:+ }}$CUDAFLAGS" INC="${INC-}" LDFLAGS="${LDFLAGS-}" LIB_MODULES= # modules libraries @@ -431,7 +431,7 @@ fi AC_ARG_VAR([AJA_DIRECTORY], [Directory to AJA NTV2 SDK.]) AC_ARG_VAR([BLUE_LATEST_SDK], [Placement of Bluefish444 SDK.]) AC_ARG_VAR([CINEFORM_DIRECTORY], [Directory to Cineform SDK.]) -AC_ARG_VAR([CUDA_FLAGS], [Flags to be passed to CUDA compiler, eg. -arch=native]) +AC_ARG_VAR([CUDA_FLAGS], [Flags to be passed to CUDA compiler, eg. -arch=native; alterntatively CUDAFLAGS]) AC_ARG_VAR([CUDA_PATH], [Directory of your Nvidia toolkit instalation.]) AC_ARG_VAR([DELTACAST_DIRECTORY], [Placement of VideoMasterHD directory (Deltacast).]) AC_ARG_VAR([DVS_DIRECTORY], [Path to DVS installation.])