diff options
author | Brad King <brad.king@kitware.com> | 2014-10-22 17:37:47 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-10-22 17:37:47 (GMT) |
commit | b816563220ef58a1a7cafd04a50319df65cb2f8e (patch) | |
tree | 13d68bbeae73406d67d14c2c5c77eebf98711dc7 /Modules | |
parent | 1271a93434b6c32d0274cfad5e79cabeac80fc32 (diff) | |
parent | 59814cb43004ac299b4f0778825b8a3e23515602 (diff) | |
download | CMake-b816563220ef58a1a7cafd04a50319df65cb2f8e.zip CMake-b816563220ef58a1a7cafd04a50319df65cb2f8e.tar.gz CMake-b816563220ef58a1a7cafd04a50319df65cb2f8e.tar.bz2 |
Merge topic 'cuda-rpath-osx'
59814cb4 FindCUDA: Remove rpath logic outdated by CMake's own @rpath support
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. |