summaryrefslogtreecommitdiffstats
path: root/Modules/Internal
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-05-26 16:05:22 (GMT)
committerRaul Tambre <raul@tambre.ee>2020-05-26 16:05:22 (GMT)
commitf2df6f5446a42ad31be96cf2a794a67c3cc96fa1 (patch)
treec0b774c010e201ed22c5362e684a0cb1f5ceee1e /Modules/Internal
parent7c0e5fcf636b21fb2f422add09b2c1bd70d336b0 (diff)
downloadCMake-f2df6f5446a42ad31be96cf2a794a67c3cc96fa1.zip
CMake-f2df6f5446a42ad31be96cf2a794a67c3cc96fa1.tar.gz
CMake-f2df6f5446a42ad31be96cf2a794a67c3cc96fa1.tar.bz2
CUDA: Check for lib/x64 library directory in Internal/CUDAToolkit
Fixes #20755.
Diffstat (limited to 'Modules/Internal')
-rw-r--r--Modules/Internal/CUDAToolkit.cmake2
1 files changed, 2 insertions, 0 deletions
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()