Commit a27c13f4 authored by Ruslan Baratov's avatar Ruslan Baratov Committed by Brad King

BundleUtilities: Teach fixup_bundle to check install_name_tool result

Fail explicitly if install_name_tool fails to make an update we need.
parent 2fd44b08
......@@ -776,7 +776,12 @@ function(fixup_bundle_item resolved_embedded_item exepath dirs)
# to install_name_tool:
execute_process(COMMAND install_name_tool ${changes} "${resolved_embedded_item}")
set(cmd install_name_tool ${changes} "${resolved_embedded_item}")
execute_process(COMMAND ${cmd} RESULT_VARIABLE install_name_tool_result)
if(NOT install_name_tool_result EQUAL 0)
string(REPLACE ";" "' '" msg "'${cmd}'")
message(FATAL_ERROR "Command failed:\n ${msg}")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment