summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-19 13:33:17 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-19 13:34:23 (GMT)
commitcca5897318d5c747078f79cd5bb45ba74955102a (patch)
tree0c76e41a54ab3ae22b24b107de428feef3f5a256 /Modules
parent98d53ba1d6a8815ddd2e446b7c2ba65dd1be7b82 (diff)
parent13a7c858c8acfa530badcb7ad53b5494e0c37aae (diff)
downloadCMake-cca5897318d5c747078f79cd5bb45ba74955102a.zip
CMake-cca5897318d5c747078f79cd5bb45ba74955102a.tar.gz
CMake-cca5897318d5c747078f79cd5bb45ba74955102a.tar.bz2
Merge topic 'CMakeFindBinUtils-install_name_tool-prefix'
13a7c858c8 Use _CMAKE_TOOLCHAIN_PREFIX for install_name_tool as well Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3830
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFindBinUtils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index 01f9dae..781b48c 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -134,7 +134,7 @@ else()
endif()
if(CMAKE_PLATFORM_HAS_INSTALLNAME)
- find_program(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
+ find_program(CMAKE_INSTALL_NAME_TOOL NAMES ${_CMAKE_TOOLCHAIN_PREFIX}install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
if(NOT CMAKE_INSTALL_NAME_TOOL)
message(FATAL_ERROR "Could not find install_name_tool, please check your installation.")