From 5f6f59ef2eba797fad44edf31ab37046eea2b140 Mon Sep 17 00:00:00 2001 From: Adam Wolf Date: Thu, 6 Nov 2014 13:36:07 -0500 Subject: [PATCH] Fix OSX bundle library write permission bug. --- kicad/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kicad/CMakeLists.txt b/kicad/CMakeLists.txt index 013109e72a..c407d386f6 100644 --- a/kicad/CMakeLists.txt +++ b/kicad/CMakeLists.txt @@ -105,6 +105,10 @@ if( APPLE ) # do all the work include( BundleUtilities ) + + # If `BU_CHMOD_BUNDLE_ITEMS` is not set, `install_name_tool` will fail to re-write some loader paths due to lack of writable permissions if the build dependencies were installed by brew (or didn't have writable permissions) + set(BU_CHMOD_BUNDLE_ITEMS ON) + fixup_bundle( ${OSX_BUNDLE_INSTALL_BIN_DIR}/kicad \"\${BUNDLE_FIX_LIBS}\" \"\"