summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2023-05-12 14:00:32 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2023-05-22 19:37:35 (GMT)
commit4f10111e950de87106677d309a0f41356eff34af (patch)
tree85a04d08b3cee65e2663f8b6d770aa608a983f54 /Tests/Cuda
parent25eddc2ef3a5ced7851b1c3795a46ac3364c18f1 (diff)
downloadCMake-4f10111e950de87106677d309a0f41356eff34af.zip
CMake-4f10111e950de87106677d309a0f41356eff34af.tar.gz
CMake-4f10111e950de87106677d309a0f41356eff34af.tar.bz2
CUDA: Cuda* tests add rpath entry only for need cuda lib directory
Found when developing https://github.com/conda-forge/cuda-nvcc-feedstock/pull/13/ We previously added RPATH entries for all implicit directories and therefore started to load the incorrect pthread library.
Diffstat (limited to 'Tests/Cuda')
-rw-r--r--Tests/Cuda/Complex/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/Cuda/Complex/CMakeLists.txt b/Tests/Cuda/Complex/CMakeLists.txt
index 63defdf..e252304 100644
--- a/Tests/Cuda/Complex/CMakeLists.txt
+++ b/Tests/Cuda/Complex/CMakeLists.txt
@@ -53,5 +53,6 @@ endif()
if(UNIX)
# Help the shared cuda runtime find libcudart as it is not located
# in a default system searched location
- set_property(TARGET CudaComplexMixedLib PROPERTY BUILD_RPATH ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
+ find_package(CUDAToolkit REQUIRED)
+ set_property(TARGET CudaComplexMixedLib PROPERTY BUILD_RPATH "${CUDAToolkit_LIBRARY_DIR}")
endif()