summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-11 14:59:26 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-11 14:59:26 (GMT)
commit79ea7e6d087924ff1c898e727b6e83944f0f689d (patch)
tree59e95ed0edfaf3fd8303e3e460099234aa27deb4 /Modules
parentf3c0c6140360d0591c5163e7a3fcdf0040f4690f (diff)
parenta27c13f4cad2247833d048ec5e334861943fd4d9 (diff)
downloadCMake-79ea7e6d087924ff1c898e727b6e83944f0f689d.zip
CMake-79ea7e6d087924ff1c898e727b6e83944f0f689d.tar.gz
CMake-79ea7e6d087924ff1c898e727b6e83944f0f689d.tar.bz2
Merge topic 'BundleUtilities-install_name_tool-exit'
a27c13f4 BundleUtilities: Teach fixup_bundle to check install_name_tool result
Diffstat (limited to 'Modules')
-rw-r--r--Modules/BundleUtilities.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake
index fee0a7c..ce90f30 100644
--- a/Modules/BundleUtilities.cmake
+++ b/Modules/BundleUtilities.cmake
@@ -776,7 +776,12 @@ function(fixup_bundle_item resolved_embedded_item exepath dirs)
# to install_name_tool:
#
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()
endfunction()