mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-05 04:03:22 +03:00
OS X: Only search for install_name_tool if the toolchain has it
When cross compiling, toolchains won't have install_name_tool, which is provided by Xcode and command line tools on OS X. This is a Mach-O specific utility and not required on all platforms.
This commit is contained in:
1 parent
623123aaa0
commit
591a7388cf
1 file changed
+1
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user