Merge topic 'allow_cuda_tests_to_run_on_mac'

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

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1153
This commit is contained in:
Robert Maynard 2018-04-17 18:24:56 +00:00 committed by Kitware Robot
commit b75d015c41

@ -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)