View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014479 | CMake | CMake | public | 2013-10-11 11:28 | 2014-03-05 09:58 | ||||
Reporter | Michael Priestman | ||||||||
Assigned To | Brad King | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Apple | OS | Mac OS X | OS Version | 10.7.5 | ||||
Product Version | CMake 2.8.11.2 | ||||||||
Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 | ||||||
Summary | 0014479: XCODE_DEPEND_HELPER.make doesn't work with iOS applications | ||||||||
Description | When working with static libraries in Xcode, there is a post-build step added by CMake to clean targets when a static lib is built. This is to work-around known limitations in Xcode. The file that does the real work is XCODE_DEPEND_HELPER.make, and it includes lines of the format: /bin/rm -f /<path-to-outdir>/bin/Debug/test.app/Contents/MacOS/test This works fine for Mac OS apps, but doesn't work correctly for iOS apps. In that case, the actual binary file is not inside a "Contents/MacOS" folder, but instead just directly under the app directory, so the correct command should be: /bin/rm -f /<path-to-outdir>/bin/Debug/test.app/test Is there some setting that the iOS.cmake toolchain could set that would alter what is generated in this file? Or would CMake need to be extended to allow customisation of this file? | ||||||||
Steps To Reproduce | Create a CMake project that uses the ios-cmake toolchain (https://code.google.com/p/ios-cmake/ [^]) that contains a static lib and an iOS app that links against the static lib. Build the app. Then update the code in the library. When you build the app again, it won't relink the new library. | ||||||||
Additional Information | Should this defect actually be raised against the ios-cmake toolchain project instead? | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0034104) Brad King (manager) 2013-10-11 11:32 |
XCODE_DEPEND_HELPER is a hack we had to use to work around the lack of link dependency checking in OTHER_LDFLAGS by Xcode. Fortunately Xcode 5 finally fixed that limiation. CMake >= 2.8.12 with Xcode >= 5 does not use XCODE_DEPEND_HELPER. |
(0034105) Brad King (manager) 2013-10-11 11:35 |
For reference, the reason ios targets to not appear where CMake expects them is: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0c030ef7 [^] http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=59a22655 [^] |
(0034178) Michael Priestman (reporter) 2013-10-21 05:31 |
Thanks for the quick feedback Brad. I've tested this with XCode 5 and CMake 2.8.12, and it now appears to work as expected. So you can resolve this as fixed for me. |
(0035287) Robert Maynard (manager) 2014-03-05 09:58 |
Closing resolved issues that have not been updated in more than 4 months |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-10-11 11:28 | Michael Priestman | New Issue | |
2013-10-11 11:32 | Brad King | Note Added: 0034104 | |
2013-10-11 11:35 | Brad King | Note Added: 0034105 | |
2013-10-21 05:31 | Michael Priestman | Note Added: 0034178 | |
2013-10-21 08:32 | Brad King | Assigned To | => Brad King |
2013-10-21 08:32 | Brad King | Status | new => resolved |
2013-10-21 08:32 | Brad King | Resolution | open => fixed |
2013-10-21 08:32 | Brad King | Fixed in Version | => CMake 2.8.12 |
2013-10-21 08:32 | Brad King | Target Version | => CMake 2.8.12 |
2014-03-05 09:58 | Robert Maynard | Note Added: 0035287 | |
2014-03-05 09:58 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |