summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-11-20 15:29:25 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-11-20 15:29:25 (GMT)
commita62d50ec56087bc6364c2e6c097b312167839957 (patch)
treeccd039133f878c223a4debd63e5b369ab87dc214 /Modules/FindCUDA.cmake
parentfd56d6a8e637750cbf2e038bde12164962c66bc4 (diff)
downloadCMake-a62d50ec56087bc6364c2e6c097b312167839957.zip
CMake-a62d50ec56087bc6364c2e6c097b312167839957.tar.gz
CMake-a62d50ec56087bc6364c2e6c097b312167839957.tar.bz2
Modules: Replace coded PATHS with PATH_SUFFIXES
Some modules assume that `/usr` and `/usr/local` are the only `CMAKE_PREFIX_PATH` entries and explicitly enumerate all paths instead of using `PATH_SUFFIXES` and relying on the dynamic set of prefix paths. This commit attempts to rectify that behavior.
Diffstat (limited to 'Modules/FindCUDA.cmake')
-rw-r--r--Modules/FindCUDA.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake
index 8708938..9ea8136 100644
--- a/Modules/FindCUDA.cmake
+++ b/Modules/FindCUDA.cmake
@@ -666,8 +666,7 @@ if(NOT CUDA_TOOLKIT_ROOT_DIR AND NOT CMAKE_CROSSCOMPILING)
find_path(CUDA_TOOLKIT_ROOT_DIR
NAMES nvcc nvcc.exe
PATHS /opt/cuda/bin
- /usr/local/bin
- /usr/local/cuda/bin
+ PATH_SUFFIXES cuda/bin
DOC "Toolkit location."
)