diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2014-10-21 17:40:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-10-22 14:50:15 (GMT) |
commit | 59814cb43004ac299b4f0778825b8a3e23515602 (patch) | |
tree | 5af25305d0cc52800d6501978d13d42245ed452b /Modules | |
parent | 54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff) | |
download | CMake-59814cb43004ac299b4f0778825b8a3e23515602.zip CMake-59814cb43004ac299b4f0778825b8a3e23515602.tar.gz CMake-59814cb43004ac299b4f0778825b8a3e23515602.tar.bz2 |
FindCUDA: Remove rpath logic outdated by CMake's own @rpath support
Otherwise binaries end up with two copies of the same value and the OS X
install_name_tool may corrupt them.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDA.cmake | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Modules/FindCUDA.cmake b/Modules/FindCUDA.cmake index 2e2b21c..3dd975c 100644 --- a/Modules/FindCUDA.cmake +++ b/Modules/FindCUDA.cmake @@ -703,18 +703,6 @@ if(CUDA_BUILD_EMULATION AND CUDA_CUDARTEMU_LIBRARY) else() set(CUDA_LIBRARIES ${CUDA_CUDART_LIBRARY}) endif() -if(APPLE) - # We need to add the path to cudart to the linker using rpath, since the - # library name for the cuda libraries is prepended with @rpath. - if(CUDA_BUILD_EMULATION AND CUDA_CUDARTEMU_LIBRARY) - get_filename_component(_cuda_path_to_cudart "${CUDA_CUDARTEMU_LIBRARY}" PATH) - else() - get_filename_component(_cuda_path_to_cudart "${CUDA_CUDART_LIBRARY}" PATH) - endif() - if(_cuda_path_to_cudart) - list(APPEND CUDA_LIBRARIES -Wl,-rpath "-Wl,${_cuda_path_to_cudart}") - endif() -endif() # 1.1 toolkit on linux doesn't appear to have a separate library on # some platforms. |