mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-12 18:19:11 -06:00
The result variable was `CUDAToolkit_NVCC_EXECUTABLE` instead of `_CUDA_NVCC_EXECUTABLE`, which the rest of the code used. Also, we can simply `set()` the `_CUDA_NVCC_EXECUTABLE` value without searching. Fixes: #20847
See the "Find Modules" section of the cmake-developer(7) manual page. For more information about how to contribute modules to CMake, see this page: https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/dev/Module-Maintainers