diff options
author | Brad King <brad.king@kitware.com> | 2010-09-08 15:08:16 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-09-08 15:08:16 (GMT) |
commit | 795676062e4e6ddb4d471c42063b190b51507cea (patch) | |
tree | 5a01b7257eff7aed4a73535069627e6918845357 | |
parent | 048c905f05a293a4e748d47fa981b23049a03666 (diff) | |
parent | 88fed668b1a35f6bd1c0ab2cd4bc6f62576b9121 (diff) | |
download | CMake-795676062e4e6ddb4d471c42063b190b51507cea.zip CMake-795676062e4e6ddb4d471c42063b190b51507cea.tar.gz CMake-795676062e4e6ddb4d471c42063b190b51507cea.tar.bz2 |
Merge topic 'fix-9284'
88fed66 Make bundle items writable before fixup (#9284)
-rw-r--r-- | Modules/BundleUtilities.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake index b48c61e..fad3b78 100644 --- a/Modules/BundleUtilities.cmake +++ b/Modules/BundleUtilities.cmake @@ -118,6 +118,9 @@ # Accumulate changes in a local variable and make *one* call to # install_name_tool at the end of the function with all the changes at once. # +# If the BU_CHMOD_BUNDLE_ITEMS variable is set then bundle items will be +# marked writable before install_name_tool tries to change them. +# # VERIFY_BUNDLE_PREREQUISITES(<bundle> <result_var> <info_var>) # Verifies that the sum of all prerequisites of all files inside the bundle # are contained within the bundle or are "system" libraries, presumed to exist @@ -541,6 +544,10 @@ function(fixup_bundle_item resolved_embedded_item exepath dirs) endif(NOT "${${rkey}_EMBEDDED_ITEM}" STREQUAL "") endforeach(pr) + if(BU_CHMOD_BUNDLE_ITEMS) + execute_process(COMMAND chmod u+w "${resolved_embedded_item}") + endif() + # Change this item's id and all of its references in one call # to install_name_tool: # |