diff options
author | Brad King <brad.king@kitware.com> | 2014-07-07 12:54:25 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-07-07 12:54:25 (GMT) |
commit | f59ad29a0e4fd3bbeda6f3ac06c68c1c6c989dc6 (patch) | |
tree | ced654cee723a12be37af092c0f79f0ad927f551 /Modules | |
parent | d39e7f1259abe3057f057445b62d3aaf0b0961a1 (diff) | |
parent | 591a7388cf8cd26377d901195c9946b51c44cdfb (diff) | |
download | CMake-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.cmake | 4 |
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) |