diff options
author | David Cole <david.cole@kitware.com> | 2009-09-28 21:43:52 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-09-28 21:43:52 (GMT) |
commit | 23dbb3b8037db328bc02abd4f083e7e5eaec68fc (patch) | |
tree | 3c68e9c26f17520e2ed6609ae5a639463650033e /Modules | |
parent | b5265c24751dd89487d71f8cb5e735e7a9eab1f9 (diff) | |
download | CMake-23dbb3b8037db328bc02abd4f083e7e5eaec68fc.zip CMake-23dbb3b8037db328bc02abd4f083e7e5eaec68fc.tar.gz CMake-23dbb3b8037db328bc02abd4f083e7e5eaec68fc.tar.bz2 |
Fix issue #9412 - remove RPATH from files copied by BundleUtilities.cmake on Linux. Thanks to Clinton Stimpson for the patch.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/BundleUtilities.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake index 18f2a3b..d9c41f4 100644 --- a/Modules/BundleUtilities.cmake +++ b/Modules/BundleUtilities.cmake @@ -426,6 +426,10 @@ function(copy_resolved_item_into_bundle resolved_item resolved_embedded_item) #message(STATUS "copying COMMAND ${CMAKE_COMMAND} -E copy ${resolved_item} ${resolved_embedded_item}") execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${resolved_item}" "${resolved_embedded_item}") endif() + + if(UNIX AND NOT APPLE) + file(RPATH_REMOVE FILE "${resolved_embedded_item}") + endif(UNIX AND NOT APPLE) endfunction(copy_resolved_item_into_bundle) |