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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to