MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012370 | CMake | CMake | public | 2011-07-29 01:20 | 2012-02-06 06:07 |
Reporter | simleb | ||||
Assigned To | David Cole | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Mac | OS | OS X | OS Version | 10.6-7 |
Product Version | CMake 2.8.5 | ||||
Target Version | CMake 2.8.6 | Fixed in Version | CMake 2.8.6 | ||
Summary | 0012370: Space in MACOSX_BUNDLE target name yields PostBuild script error with Xcode generator | ||||
Description | When using a space in the target name of a MACOSX_BUNDLE (for an OS X app, it's pretty common, e.g. "App Store" or "Photo Booth"…) and generating a Xcode project, then in Xcode the build fails because the post build script tries to make the target PostBuild.Name\ with\ spaces.$CONFIGURATION of the XCODE_DEPEND_HELPER.make makefile and I guess make doesn't like it. See the 'additional informations' for the actual output. Setting MACOSX_BUNDLE_BUNDLE_NAME to "My App" doesn't help. A solution could be to produce an app named based on MACOSX_BUNDLE_BUNDLE_NAME instead of the target name, so you can use a target name like "MyApp" and still get a proper "My App.app" executable. This issue is new to CMake 2.8.5 to the best of my knowledge. Tested on both Xcode 3.2.5 on OS X 10.6 and Xcode 4.1 on OS X 10.7 Using the makefiles generator, there is no issue. I get "My App.app". For Xcode, the temporary workaround is to skip the space in the target name (like "MyApp"). | ||||
Steps To Reproduce | 1. add_executable("My App" MACOSX_BUNDLE …) 2. $ cmake . -G Xcode 3. Try to build in Xcode | ||||
Additional Information | echo "Depend check for xcode" Depend check for xcode cd /path/to/buildir && make -C /path/to/buildir -f /path/to/buildir/CMakeScripts/XCODE_DEPEND_HELPER.make PostBuild.My\ App.Debug make[1]: *** No rule to make target `PostBuild.My App.Debug'. Stop. make: *** [Demo] Error 2 Command /bin/sh failed with exit code 2 | ||||
Tags | Xcode | ||||
Relationships | |||||
Attached Files | 0001-xcode-Fix-bug-12370.patch (982) 2011-08-27 14:17 https://public.kitware.com/Bug/file/4026/0001-xcode-Fix-bug-12370.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-07-29 01:20 | simleb | New Issue | |||
2011-07-29 01:23 | simleb | Tag Attached: Xcode | |||
2011-07-29 06:12 | David Cole | Assigned To | => David Cole | ||
2011-07-29 06:12 | David Cole | Status | new => assigned | ||
2011-08-27 14:17 | Johan Björk | File Added: 0001-xcode-Fix-bug-12370.patch | |||
2011-08-27 14:18 | Johan Björk | Note Added: 0027276 | |||
2011-08-31 11:10 | David Cole | Target Version | => CMake 2.8.6 | ||
2011-09-05 13:24 | David Cole | Note Added: 0027352 | |||
2011-09-05 13:24 | David Cole | Status | assigned => resolved | ||
2011-09-05 13:24 | David Cole | Fixed in Version | => CMake 2.8.6 | ||
2011-09-05 13:24 | David Cole | Resolution | open => fixed | ||
2012-02-06 06:07 | David Cole | Note Added: 0028491 | |||
2012-02-06 06:07 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|