Specify an RPATH for CUDA runtime on OSX so tests will run

This commit is contained in:
Robert Maynard 2018-04-17 14:05:07 -04:00
parent 06c3389aa7
commit 8c7c1be232

@ -292,6 +292,11 @@ function(vtkm_library)
set_property(TARGET ${lib_name} PROPERTY CXX_VISIBILITY_PRESET "hidden")
endif()
# allow the static cuda runtime find the driver (libcuda.dyllib) at runtime.
if(APPLE)
set_property(TARGET ${lib_name} PROPERTY BUILD_RPATH ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
endif()
# Setup the SOVERSION and VERSION information for this vtkm library
set_property(TARGET ${lib_name} PROPERTY VERSION 1)
set_property(TARGET ${lib_name} PROPERTY SOVERSION 1)