Merge topic 'BundleUtilities-install_name_tool-exit'
a27c13f4 BundleUtilities: Teach fixup_bundle to check install_name_tool result
This commit is contained in:
commit
79ea7e6d08
@ -776,7 +776,12 @@ function(fixup_bundle_item resolved_embedded_item exepath dirs)
|
|||||||
# to install_name_tool:
|
# to install_name_tool:
|
||||||
#
|
#
|
||||||
if(changes)
|
if(changes)
|
||||||
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}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user