environment: do not raise exception in detect_cuda_compiler
environment: do not raise exception in detect_cuda_compiler

when the compiler is not a string.  When the compiler
is set in the build configuration (required, for example,
in a cross-build setup), the compiler setting is already
a list, which is the desired type.

Signed-off-by: Matt Madison <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@madison.systems>

mesonbuild/meson,mesonbuild/meson,QuLogic/meson,pexip/meson,mesonbuild/meson,pexip/meson,mesonbuild/meson,mesonbuild/meson,QuLogic/meson,jpakkane/meson,mesonbuild/meson,mesonbuild/meson,jpakkane/meson,QuLogic/meson,jpakkane/meson,QuLogic/meson,jpakkane/meson,QuLogic/meson,jpakkane/meson,QuLogic/meson,pexip/meson,jpakkane/meson,mesonbuild/meson,jpakkane/meson,pexip/meson,QuLogic/meson,pexip/meson,jpakkane/meson,pexip/meson,mesonbuild/meson,QuLogic/meson,mesonbuild/meson,QuLogic/meson,pexip/meson,pexip/meson,pexip/meson,pexip/meson,jpakkane/meson