From a62d50ec56087bc6364c2e6c097b312167839957 Mon Sep 17 00:00:00 2001 From: Christian Pfeiffer Date: Mon, 20 Nov 2017 16:29:25 +0100 Subject: 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. --- Modules/FindCUDA.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Modules/FindCUDA.cmake') diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 8708938fbc..9ea81369eb 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." ) -- cgit v1.2.1