cuda: allow C++17 build with CUDA 11+
Currently, trying to build with geant4@11 and CUDA fails when CMAKE_CXX_STANDARD is set to 17. (I encountered this building with spack and the cxxstd=17 flag.) This allows C++17 when using CUDA 11 or higher.
Security Notice: GitLab has uncovered a widespread malicious npm supply-chain attack that potentially can destroy user data. All teams are required to audit packages. Further information can be found under the Computer Security Report for November 2025 and the original blog post in https://about.gitlab.com/blog/gitlab-discovers-widespread-npm-supply-chain-attack/
Currently, trying to build with geant4@11 and CUDA fails when CMAKE_CXX_STANDARD is set to 17. (I encountered this building with spack and the cxxstd=17 flag.) This allows C++17 when using CUDA 11 or higher.