summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFindBinUtils.cmake
diff options
context:
space:
mode:
authorIsuru Fernando <isuruf@gmail.com>2019-09-18 16:05:39 (GMT)
committerIsuru Fernando <isuruf@gmail.com>2019-09-18 16:05:39 (GMT)
commit13a7c858c8acfa530badcb7ad53b5494e0c37aae (patch)
tree72e716a1b9b1a7661f2397796f166962f05f1204 /Modules/CMakeFindBinUtils.cmake
parent1423507a71199fd76b457ad9b215a6caca70ee58 (diff)
downloadCMake-13a7c858c8acfa530badcb7ad53b5494e0c37aae.zip
CMake-13a7c858c8acfa530badcb7ad53b5494e0c37aae.tar.gz
CMake-13a7c858c8acfa530badcb7ad53b5494e0c37aae.tar.bz2
Use _CMAKE_TOOLCHAIN_PREFIX for install_name_tool as well
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-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.")