[cmake-developers] [CMake 0015000]: CMakeFindBinUtils always search for install_name_tool even when cross compiling on OSX

Mantis Bug Tracker mantis at public.kitware.com
Tue Jul 1 14:33:56 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15000 
====================================================================== 
Reported By:                Florent Castelli
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15000
Category:                   Modules
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-07-01 14:33 EDT
Last Modified:              2014-07-01 14:33 EDT
====================================================================== 
Summary:                    CMakeFindBinUtils always search for
install_name_tool even when cross compiling on OSX
Description: 
When cross compiling (in my case for Android) from a Mac,
CMakeFindBinUtils.cmake searches for a tool called "install_name_tool" required
to make changes to Mach-O binaries (which is totally irrelevant to Android dev).
This tool might not be installed (it comes with xcode or command line tools on
OSX) and thus CMake will fail to generate a project (it issues a fatal error).

This "error" is so pervasive that some android toolchain files actually ensure
that install_name_tool is available just to pass this check.

Fix would require to change the if(APPLE) on line 71 to
if(CMAKE_PLATFORM_HAS_INSTALLNAME) which is set in other files when the tool is
provided by the toolchain.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-07-01 14:33 Florent CastelliNew Issue                                    
======================================================================



More information about the cmake-developers mailing list