From f2df6f5446a42ad31be96cf2a794a67c3cc96fa1 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Tue, 26 May 2020 19:05:22 +0300 Subject: CUDA: Check for lib/x64 library directory in Internal/CUDAToolkit Fixes #20755. --- Modules/Internal/CUDAToolkit.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/Internal/CUDAToolkit.cmake b/Modules/Internal/CUDAToolkit.cmake index ab1e568..291bb01 100644 --- a/Modules/Internal/CUDAToolkit.cmake +++ b/Modules/Internal/CUDAToolkit.cmake @@ -220,6 +220,8 @@ find_path(CUDAToolkit_INCLUDE_DIR # for find_library() have been initialized. if(EXISTS "${CUDAToolkit_TARGET_DIR}/lib64") set(CUDAToolkit_LIBRARY_DIR "${CUDAToolkit_TARGET_DIR}/lib64") +elseif(EXISTS "${CUDAToolkit_TARGET_DIR}/lib/x64") + set(CUDAToolkit_LIBRARY_DIR "${CUDAToolkit_TARGET_DIR}/lib/x64") elseif(EXISTS "${CUDAToolkit_TARGET_DIR}/lib") set(CUDAToolkit_LIBRARY_DIR "${CUDAToolkit_TARGET_DIR}/lib") endif() -- cgit v0.12