summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-13 13:51:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-02-13 13:51:51 (GMT)
commit23f9b042fdb58b0bea09aefa42350be81f355ea2 (patch)
tree9e024d67f8cfda8642a3c638b9fdf9c058355e1f
parent4977739fc978a0480fc1cde3f03a88a083e955a5 (diff)
parent17d758b36d8c9919d42d27162f6125e21b0a9b56 (diff)
downloadCMake-23f9b042fdb58b0bea09aefa42350be81f355ea2.zip
CMake-23f9b042fdb58b0bea09aefa42350be81f355ea2.tar.gz
CMake-23f9b042fdb58b0bea09aefa42350be81f355ea2.tar.bz2
Merge topic 'FindCUDAToolkit-driver-deps' into release-3.29
17d758b36d FindCUDAToolkit: Fix cuda driver dependencies Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9243
-rw-r--r--Modules/FindCUDAToolkit.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index 1eaf36b..2229de6 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -1137,9 +1137,6 @@ if(CUDAToolkit_FOUND)
target_link_directories(CUDA::toolkit INTERFACE "${CUDAToolkit_LIBRARY_DIR}")
endif()
- _CUDAToolkit_find_and_add_import_lib(cuda_driver ALT cuda)
-
-
# setup dependencies that are required for cudart/cudart_static when building
# on linux. These are generally only required when using the CUDA toolkit
# when CUDA language is disabled
@@ -1162,6 +1159,7 @@ if(CUDAToolkit_FOUND)
endif()
endif()
+ _CUDAToolkit_find_and_add_import_lib(cuda_driver ALT cuda DEPS cudart_static_deps)
_CUDAToolkit_find_and_add_import_lib(cudart DEPS cudart_static_deps)
_CUDAToolkit_find_and_add_import_lib(cudart_static DEPS cudart_static_deps)