summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDAToolkit.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-03 15:51:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-03 15:51:29 (GMT)
commit8a131c92a4a677c9e7ceab3f0715d61a0677f8f1 (patch)
tree4d5d369f63ca781334cd117124b9616cb80f5376 /Modules/FindCUDAToolkit.cmake
parenta24679e9f30c222a9326f3dc9dc0d2a500c43e6b (diff)
parent4ea6d3c3aea25968fbbd2c4cece56a10eccf48ab (diff)
downloadCMake-8a131c92a4a677c9e7ceab3f0715d61a0677f8f1.zip
CMake-8a131c92a4a677c9e7ceab3f0715d61a0677f8f1.tar.gz
CMake-8a131c92a4a677c9e7ceab3f0715d61a0677f8f1.tar.bz2
Merge topic 'findcudatoolkit_env_path'
4ea6d3c3ae FindCUDAToolkit: Restore use of CUDA_PATH environment variable Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raul Tambre <raul@tambre.ee> Merge-request: !5761
Diffstat (limited to 'Modules/FindCUDAToolkit.cmake')
-rw-r--r--Modules/FindCUDAToolkit.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index 0d80c80..ac2516c 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -578,7 +578,7 @@ else()
_CUDAToolkit_find_root_dir(SEARCH_PATHS "${CUDAToolkit_ROOT}" FIND_FLAGS PATH_SUFFIXES bin NO_DEFAULT_PATH)
endif()
if(NOT CUDAToolkit_ROOT_DIR)
- _CUDAToolkit_find_root_dir(FIND_FLAGS PATHS "ENV CUDA_PATH" PATH_SUFFIXES bin)
+ _CUDAToolkit_find_root_dir(FIND_FLAGS PATHS ENV CUDA_PATH PATH_SUFFIXES bin)
endif()
# If the user specified CUDAToolkit_ROOT but the toolkit could not be found, this is an error.