diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-06-15 21:31:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-16 12:30:42 (GMT) |
commit | cb9fab49dda406f5ad1bc489c5861b011075a9b1 (patch) | |
tree | 4f3dc939edf1edc5212c812e6f2a16417a87d32a | |
parent | f37ff966d094afd279081c7598b5d3102c377cdd (diff) | |
download | CMake-cb9fab49dda406f5ad1bc489c5861b011075a9b1.zip CMake-cb9fab49dda406f5ad1bc489c5861b011075a9b1.tar.gz CMake-cb9fab49dda406f5ad1bc489c5861b011075a9b1.tar.bz2 |
Tests: Fix CudaOnly.StaticRuntimePlusToolkit build rpath
-rw-r--r-- | Tests/CudaOnly/StaticRuntimePlusToolkit/CMakeLists.txt | 6 |
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() |