mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
Tests: Fix CudaOnly.StaticRuntimePlusToolkit build rpath
This commit is contained in:
committed by
Brad King
parent
f37ff966d0
commit
cb9fab49dd
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user