|
|
@@ -67,9 +67,8 @@ target_compile_definitions(CudaOnlyExportPTX PRIVATE
|
|
|
"CONFIG_TYPE=gen_$<LOWER_CASE:$<CONFIG>>")
|
|
|
|
|
|
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(CudaOnlyExportPTX PRIVATE -Wl,-rpath,/usr/local/cuda/lib)
|
|
|
+ # Help the static cuda runtime find the driver (libcuda.dyllib) at runtime.
|
|
|
+ set_property(TARGET CudaOnlyExportPTX PROPERTY BUILD_RPATH ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
|
|
|
endif()
|
|
|
|
|
|
#Verify that we can install object targets properly
|