From 71f6f95020f32066894670266de13136ec3b27fc Mon Sep 17 00:00:00 2001 From: Andrew Dunn Date: Wed, 21 Sep 2022 07:44:56 +1000 Subject: [PATCH] Make Mac Plugins osgPlugins symlink relative Was an absolute path. --- cmake/SignMacApplications.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/SignMacApplications.cmake b/cmake/SignMacApplications.cmake index aa1b6ed17f..bcecb10491 100644 --- a/cmake/SignMacApplications.cmake +++ b/cmake/SignMacApplications.cmake @@ -14,7 +14,8 @@ if (APPLE) # create a symlink using the original name, which codesign is fine with. file(GLOB OSG_PLUGINS_DIR "${FULL_APP_PATH}/Contents/PlugIns/osgPlugins*") file(RENAME "${OSG_PLUGINS_DIR}" "${FULL_APP_PATH}/Contents/PlugIns/osgPlugins") - execute_process(COMMAND "ln" "-s" "${FULL_APP_PATH}/Contents/PlugIns/osgPlugins" "${OSG_PLUGINS_DIR}") + execute_process(COMMAND "ln" "-s" "osgPlugins" "${OSG_PLUGINS_DIR}" + WORKING_DIRECTORY "${FULL_APP_PATH}/Contents/PlugIns/") execute_process(COMMAND "codesign" "--force" "--deep" "-s" "-" "${FULL_APP_PATH}") endforeach(app_name) endif (APPLE) \ No newline at end of file