summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2020-06-15 21:31:48 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-16 12:30:42 (GMT)
commitcb9fab49dda406f5ad1bc489c5861b011075a9b1 (patch)
tree4f3dc939edf1edc5212c812e6f2a16417a87d32a /Tests/CudaOnly
parentf37ff966d094afd279081c7598b5d3102c377cdd (diff)
downloadCMake-cb9fab49dda406f5ad1bc489c5861b011075a9b1.zip
CMake-cb9fab49dda406f5ad1bc489c5861b011075a9b1.tar.gz
CMake-cb9fab49dda406f5ad1bc489c5861b011075a9b1.tar.bz2
Tests: Fix CudaOnly.StaticRuntimePlusToolkit build rpath
Diffstat (limited to 'Tests/CudaOnly')
-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()