summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-17 10:41:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-17 10:41:56 (GMT)
commit652de072089b7174ee6d06001b04321d2ef54e24 (patch)
tree5797fd8f2bd24fe8342598a9c8bb33d025f56fa2 /Tests
parente96b5e44499a82caa1a0f3b3bd3d92d6d6fcaca9 (diff)
parentcb9fab49dda406f5ad1bc489c5861b011075a9b1 (diff)
downloadCMake-652de072089b7174ee6d06001b04321d2ef54e24.zip
CMake-652de072089b7174ee6d06001b04321d2ef54e24.tar.gz
CMake-652de072089b7174ee6d06001b04321d2ef54e24.tar.bz2
Merge topic 'test-CudaOnly.StaticRuntimePlusToolkit'
cb9fab49dd Tests: Fix CudaOnly.StaticRuntimePlusToolkit build rpath Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4901
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CudaOnly/StaticRuntimePlusToolkit/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CudaOnly/StaticRuntimePlusToolkit/CMakeLists.txt b/Tests/CudaOnly/StaticRuntimePlusToolkit/CMakeLists.txt
index 97ac229..708a352 100644
--- a/Tests/CudaOnly/StaticRuntimePlusToolkit/CMakeLists.txt
+++ b/Tests/CudaOnly/StaticRuntimePlusToolkit/CMakeLists.txt
@@ -27,3 +27,9 @@ set_target_properties(MixedToolkit PROPERTIES CUDA_RUNTIME_LIBRARY Static)
add_executable(CudaOnlyStaticRuntimePlusToolkit main.cu)
target_link_libraries(CudaOnlyStaticRuntimePlusToolkit PRIVATE SharedToolkit StaticToolkit MixedToolkit)
+
+if(UNIX)
+ # Help the shared cuda runtime find libcurand and libnppif when they are not located
+ # in a default system searched location
+ set_property(TARGET CudaOnlyStaticRuntimePlusToolkit PROPERTY BUILD_RPATH ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
+endif()