VS: Use custom CUDA toolkit location
Hello !
Excited to use CMake's first class support for CUDA; however, it does not seem possible to force CMake to find a particular installation of the CUDA Toolkit, perhaps one not installed in a default location. Would have expected to accomplish this by setting the environment variable CUDACXX
, but for Visual Studio generators it seems this variable is intentionally ignored CMakeDetermineCUDACompiler.cmake#L13.
Is my understanding correct ? If it is, could you please share the motivation for this behavior and perhaps how to accomplish the goal in a good way ?
Thanks !