summaryrefslogtreecommitdiffstats
path: root/Modules/BundleUtilities.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2010-11-23 21:29:46 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2010-11-23 21:29:46 (GMT)
commit28c1be7a504c45d1a030c2d982a03b4e1cf7251b (patch)
tree6db70b4b5b3c948e4a703249ad1f52be50724cce /Modules/BundleUtilities.cmake
parenta0739ac5ab0d1136d5d5bd7a87358e5eff1a8e3d (diff)
downloadCMake-28c1be7a504c45d1a030c2d982a03b4e1cf7251b.zip
CMake-28c1be7a504c45d1a030c2d982a03b4e1cf7251b.tar.gz
CMake-28c1be7a504c45d1a030c2d982a03b4e1cf7251b.tar.bz2
BundleUtilities: only do rpath strip on copied prerequisites.
Diffstat (limited to 'Modules/BundleUtilities.cmake')
-rw-r--r--Modules/BundleUtilities.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake
index c7ead5b..48830cb 100644
--- a/Modules/BundleUtilities.cmake
+++ b/Modules/BundleUtilities.cmake
@@ -472,11 +472,11 @@ function(copy_resolved_item_into_bundle resolved_item resolved_embedded_item)
else()
#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}")
+ if(UNIX AND NOT APPLE)
+ file(RPATH_REMOVE FILE "${resolved_embedded_item}")
+ endif(UNIX AND NOT APPLE)
endif()
- if(UNIX AND NOT APPLE)
- file(RPATH_REMOVE FILE "${resolved_embedded_item}")
- endif(UNIX AND NOT APPLE)
endfunction(copy_resolved_item_into_bundle)
@@ -514,11 +514,11 @@ function(copy_resolved_framework_into_bundle resolved_item resolved_embedded_ite
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory "${resolved_resources}" "${resolved_embedded_resources}")
endif()
endif()
+ if(UNIX AND NOT APPLE)
+ file(RPATH_REMOVE FILE "${resolved_embedded_item}")
+ endif(UNIX AND NOT APPLE)
endif()
- if(UNIX AND NOT APPLE)
- file(RPATH_REMOVE FILE "${resolved_embedded_item}")
- endif(UNIX AND NOT APPLE)
endfunction(copy_resolved_framework_into_bundle)