FindCUDAToolkit: Use CUDA compiler path even when CUDA lang not enabled

Fixes: #25567
This commit is contained in:
Robert Maynard
2024-05-29 08:32:21 -04:00
parent 47ba19f346
commit eed16fbc00
5 changed files with 67 additions and 6 deletions
@@ -0,0 +1,7 @@
FindCUDAToolkit-search-paths
----------------------------
* The :module:`FindCUDAToolkit` module now searches the
:variable:`CMAKE_CUDA_COMPILER <CMAKE_<LANG>_COMPILER>` and
the environment variable :envvar:`CUDACXX` even when the CUDA
language isn't enabled.