View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015000 | CMake | Modules | public | 2014-07-01 14:33 | 2015-01-05 08:39 | ||||
Reporter | Florent Castelli | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Android | OS | OSX | OS Version | 10.9.3 | ||||
Product Version | CMake 3.0 | ||||||||
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | ||||||
Summary | 0015000: 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | 0001-Only-search-for-install_name_tool-if-the-toolchain-h.patch [^] (973 bytes) 2014-07-01 14:40 [Show Content] | ||||||||
Relationships | |
Relationships |
Notes | |
(0036300) Florent Castelli (reporter) 2014-07-01 14:40 |
Patched fixing the issue attached. |
(0036303) Brad King (manager) 2014-07-02 09:19 |
For reference, the mailing list thread is here: http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/10421 [^] I've applied that patch: OS X: Only search for install_name_tool if the toolchain has it http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b3012d20 [^] Thanks! |
(0037580) Robert Maynard (manager) 2015-01-05 08:39 |
Closing resolved issues that have not been updated in more than 4 months |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-07-01 14:33 | Florent Castelli | New Issue | |
2014-07-01 14:40 | Florent Castelli | File Added: 0001-Only-search-for-install_name_tool-if-the-toolchain-h.patch | |
2014-07-01 14:40 | Florent Castelli | Note Added: 0036300 | |
2014-07-02 09:19 | Brad King | Note Added: 0036303 | |
2014-07-02 09:19 | Brad King | Assigned To | => Brad King |
2014-07-02 09:19 | Brad King | Status | new => resolved |
2014-07-02 09:19 | Brad King | Resolution | open => fixed |
2014-07-02 09:19 | Brad King | Fixed in Version | => CMake 3.1 |
2014-07-02 09:19 | Brad King | Target Version | => CMake 3.1 |
2015-01-05 08:39 | Robert Maynard | Note Added: 0037580 | |
2015-01-05 08:39 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |