diff options
author | Brad King <brad.king@kitware.com> | 2020-06-17 10:41:50 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-06-17 10:41:56 (GMT) |
commit | 66d323bd63a7c001c977c95b84344534687bebba (patch) | |
tree | 432a65292e0075941d383c3514b2ab2de9141177 /Tests | |
parent | 3f110a08571e3a506184e6b8a8e9622317435912 (diff) | |
parent | cb9fab49dda406f5ad1bc489c5861b011075a9b1 (diff) | |
download | CMake-66d323bd63a7c001c977c95b84344534687bebba.zip CMake-66d323bd63a7c001c977c95b84344534687bebba.tar.gz CMake-66d323bd63a7c001c977c95b84344534687bebba.tar.bz2 |
Merge topic 'test-CudaOnly.StaticRuntimePlusToolkit' into release-3.18
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.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() |