diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-11-13 15:07:57 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-11-13 14:20:17 +0000 |
commit | da78629153e6ccf829a98c559777f9b451b16162 (patch) | |
tree | 2c334a59aa27c36fc9228d5dd9cfd0c6041f06d5 /cmake | |
parent | 3cd2e2c445e4e48622ddd26a3ac6fa28b254f873 (diff) | |
download | qt-creator-da78629153e6ccf829a98c559777f9b451b16162.tar.gz |
cmake build: Use CMAKE_INSTALL_NAME_TOOL instead of hardcoding
Amends 98db9774f2363314f51b1732646396112418320e
Change-Id: I4aaaddcfc0e5cc31bb0646a3a3ccc18ee2fa5ff1
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtCreatorAPI.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index 3c42464f55..816c1a7e4a 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -693,14 +693,14 @@ function(add_qtc_executable name) set(_code) foreach(_rpath ${_rpaths_to_remove}) set(_code "${_code} - execute_process(COMMAND /usr/bin/install_name_tool + execute_process(COMMAND \"${CMAKE_INSTALL_NAME_TOOL}\" -delete_rpath \"${_rpath}\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${_EXECUTABLE_FILE_PATH}\")" ) endforeach() foreach(_rpath ${install_rpath}) set(_code "${_code} - execute_process(COMMAND /usr/bin/install_name_tool + execute_process(COMMAND \"${CMAKE_INSTALL_NAME_TOOL}\" -add_rpath \"${_rpath}\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${_EXECUTABLE_FILE_PATH}\")" ) |