From 15a6ae5cb7d2d7b67ef5704acd01b6f6765fd5d9 Mon Sep 17 00:00:00 2001 From: Hans Gaiser Date: Tue, 2 Aug 2016 11:00:43 +0200 Subject: [PATCH] FindCUDA: Add search path for nvcc on Arch --- Modules/FindCUDA.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 6d9b83396..dbc56bba4 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -621,7 +621,8 @@ if(NOT CUDA_TOOLKIT_ROOT_DIR AND NOT CMAKE_CROSSCOMPILING) # Now search default paths find_path(CUDA_TOOLKIT_ROOT_DIR NAMES nvcc nvcc.exe - PATHS /usr/local/bin + PATHS /opt/cuda/bin + /usr/local/bin /usr/local/cuda/bin DOC "Toolkit location." )