summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-07 12:54:25 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-07 12:54:25 (GMT)
commitf59ad29a0e4fd3bbeda6f3ac06c68c1c6c989dc6 (patch)
treeced654cee723a12be37af092c0f79f0ad927f551 /Modules
parentd39e7f1259abe3057f057445b62d3aaf0b0961a1 (diff)
parent591a7388cf8cd26377d901195c9946b51c44cdfb (diff)
downloadCMake-f59ad29a0e4fd3bbeda6f3ac06c68c1c6c989dc6.zip
CMake-f59ad29a0e4fd3bbeda6f3ac06c68c1c6c989dc6.tar.gz
CMake-f59ad29a0e4fd3bbeda6f3ac06c68c1c6c989dc6.tar.bz2
Merge topic 'no-cross-install_name_tool'
591a7388 OS X: Only search for install_name_tool if the toolchain has it
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFindBinUtils.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake
index 829b6ff..dda28bd 100644
--- a/Modules/CMakeFindBinUtils.cmake
+++ b/Modules/CMakeFindBinUtils.cmake
@@ -66,9 +66,7 @@ else()
endif()
-
-# on Apple there really should be install_name_tool
-if(APPLE)
+if(CMAKE_PLATFORM_HAS_INSTALLNAME)
find_program(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
if(NOT CMAKE_INSTALL_NAME_TOOL)