MantisBT - CMake |
View Issue Details |
|
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. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | 0001-Only-search-for-install_name_tool-if-the-toolchain-h.patch (973) 2014-07-01 14:40 https://public.kitware.com/Bug/file/5182/0001-Only-search-for-install_name_tool-if-the-toolchain-h.patch |
|
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 |