VS: Adapt expected folder structure for custom CUDA toolkit location
The custom CUDA toolkit location cuda=C:\\path\\to\\cuda
is a great feature by CMake, especially if you want to provide CUDA as a package (eg. with Conan) to your project.
However when the support for the custom CUDA toolkit location was added, the to be expected folder structure by CMake was taken from the folder structure the CUDA installer provided. Therefor a subfolder "nvcc" and a subfolder "CUDAVisualStudioIntegration"" is expected at the location the cuda=
field points to.
I see two reasons, why a change is suggested:
- When NVIDIA introduced the latest toolkit version 11, major changes to the installer's folder structure have been made. Means setting the
cuda=
field to a location with an extracted installer will not work anymore. - The folder structure you get after running the installer would not contain any of those subfolders (also in the older versions). Means that setting the
cuda=
field to a location with an installed CUDA toolkit would not work.
Fixes: #21170 (closed)