summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-24 12:20:04 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-03-24 12:20:08 (GMT)
commit0fe705a2c33dc6491bd61bbdb91dbbd13190cfd5 (patch)
tree29ce1f57c7a3ea5e951322771b07f93b7e4f963d /Tests
parent080350b622e4315e91f87921485512a95bdf7458 (diff)
parentd40fc8856d3cc3cd40e091d858df4fb1725f1406 (diff)
downloadCMake-0fe705a2c33dc6491bd61bbdb91dbbd13190cfd5.zip
CMake-0fe705a2c33dc6491bd61bbdb91dbbd13190cfd5.tar.gz
CMake-0fe705a2c33dc6491bd61bbdb91dbbd13190cfd5.tar.bz2
Merge topic 'make_sure_cuda_tests_run'
d40fc885 CUDA: ObjectLibrary test executable now runs on OSX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !615
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Cuda/ObjectLibrary/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/Cuda/ObjectLibrary/CMakeLists.txt b/Tests/Cuda/ObjectLibrary/CMakeLists.txt
index cbe1e67..1d93be7 100644
--- a/Tests/Cuda/ObjectLibrary/CMakeLists.txt
+++ b/Tests/Cuda/ObjectLibrary/CMakeLists.txt
@@ -10,3 +10,8 @@ add_library(CudaMixedObjectLib OBJECT static.cu static.cpp)
add_executable(CudaObjectLibrary
main.cpp
$<TARGET_OBJECTS:CudaMixedObjectLib>)
+if(APPLE)
+ # We need to add the default path to the driver (libcuda.dylib) as an rpath, so that
+ # the static cuda runtime can find it at runtime.
+ target_link_libraries(CudaObjectLibrary PRIVATE -Wl,-rpath,/usr/local/cuda/lib)
+endif()