From 055c22639268db6c59377fe64d1590d6adbacad1 Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Fri, 21 Jan 2011 12:57:40 +0000 Subject: [PATCH] fixed FindNPP.cmake Apple-aimed part --- modules/gpu/FindNPP.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gpu/FindNPP.cmake b/modules/gpu/FindNPP.cmake index 9863ddc33..82fa37e27 100644 --- a/modules/gpu/FindNPP.cmake +++ b/modules/gpu/FindNPP.cmake @@ -115,7 +115,7 @@ 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. get_filename_component(_cuda_path_to_npp "${CUDA_NPP_LIBRARIES}" PATH) if(_cuda_path_to_npp) - list(APPEND CUDA_NPP_LIBRARIES -Wl,-rpath "-Wl,${_cuda_path_to_npp}") + list(APPEND CUDA_NPP_LIBRARIES "-Wl,-rpath,${_cuda_path_to_npp}") endif() endif()