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:
parent
623123aaa0
commit
591a7388cf
|
@ -66,9 +66,7 @@ else()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_PLATFORM_HAS_INSTALLNAME)
|
||||||
# on Apple there really should be install_name_tool
|
|
||||||
if(APPLE)
|
|
||||||
find_program(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
find_program(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||||
|
|
||||||
if(NOT CMAKE_INSTALL_NAME_TOOL)
|
if(NOT CMAKE_INSTALL_NAME_TOOL)
|
||||||
|
|
Loading…
Reference in New Issue