Look for nvcc in the 32 bit bin directory before the 64 bin directory.

This commit is contained in:
James Bigler 2009-10-27 12:00:28 -04:00
parent 134d8dee1e
commit 9605af8c2e
1 changed files with 2 additions and 2 deletions

View File

@ -469,8 +469,8 @@ endif (NOT CUDA_TOOLKIT_ROOT_DIR)
# CUDA_NVCC_EXECUTABLE # CUDA_NVCC_EXECUTABLE
find_program(CUDA_NVCC_EXECUTABLE find_program(CUDA_NVCC_EXECUTABLE
NAMES nvcc NAMES nvcc
PATHS "${CUDA_TOOLKIT_ROOT_DIR}/bin64" PATHS "${CUDA_TOOLKIT_ROOT_DIR}/bin"
"${CUDA_TOOLKIT_ROOT_DIR}/bin" "${CUDA_TOOLKIT_ROOT_DIR}/bin64"
ENV CUDA_BIN_PATH ENV CUDA_BIN_PATH
NO_DEFAULT_PATH NO_DEFAULT_PATH
) )