configure.ac: CUDA_FLAGS - removed bashism

When /bin/sh (default configure interpret) is not bash, the flags are
not passed to Makefile.
This commit is contained in:
Martin Pulec
2024-03-04 12:49:49 +01:00
parent fd53399b33
commit b79b5b4b44

View File

@@ -2236,7 +2236,7 @@ if test "x${with_cuda_host_compiler}" != "x" ; then
AC_PATH_PROG([cuda_host_cc], [${with_cuda_host_compiler}],[no])
# note AC_CHECK_PROG always fails on path with spaces in MSW
if test "x${cuda_host_cc}" != "xno" -o $system = Windows; then
CUDA_FLAGS+=" -ccbin \"${cuda_host_cc}\""
CUDA_FLAGS="$CUDA_FLAGS -ccbin \"${cuda_host_cc}\""
else
AC_MSG_FAILURE([Binary ${with_cuda_host_compiler} given as cuda host compiler, yet not found!])
fi