MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015487 | CMake | CMake | public | 2015-04-01 12:21 | 2015-12-19 15:41 |
| Reporter | Gregor Jasny | ||||
| Assigned To | Gregor Jasny | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Apple | OS | Mac OS X | OS Version | 10.10.2 |
| Product Version | CMake 3.2.1 | ||||
| Target Version | Fixed in Version | CMake 3.3 | |||
| Summary | 0015487: Leading double slashes in path cause unparsable Xcode project | ||||
| Description | If the project source path start with a double slash the resulting Xcode project cannot be parsed by Xcode. I got the double slash at the beginning because my build orchestration script tries to normalize the source path by calling "pwd -P". So this: $ pwd /Volumes/Macintosh HD/Users/jasny/src/pathbug was translated into $ pwd -P //Users/jasny/src/pathbug and passed to cmake invocation. Multiple slashes are discussed here: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11 [^] A pathname consisting of a single slash shall resolve to the root directory of the process. A null pathname shall not be successfully resolved. A pathname that begins with two successive slashes may be interpreted in an implementation-defined manner, although more than two leading slashes shall be treated as a single slash. I thought about adding a kind of normalization which replaces multiple slashes with one but I'm unsure if this should be done globally or just in the Xcode generator. I will also file a bug report with Apple. | ||||
| Steps To Reproduce | project(Foo CXX) add_library(foo STATIC foo.cpp) cmake -GXcode //path/to/source open Foo.xcodeproj Result: Project /Users/jasny/src/pathbug/build/Foo.xcodeproj cannot be opened because the project file cannot be parsed. | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-04-01 12:21 | Gregor Jasny | New Issue | |||
| 2015-04-01 12:48 | Gregor Jasny | Note Added: 0038382 | |||
| 2015-04-01 13:21 | Brad King | Assigned To | => Gregor Jasny | ||
| 2015-04-01 13:21 | Brad King | Status | new => assigned | ||
| 2015-04-01 13:21 | Brad King | Note Added: 0038384 | |||
| 2015-04-04 16:21 | Gregor Jasny | Note Added: 0038404 | |||
| 2015-04-06 10:19 | Brad King | Note Added: 0038450 | |||
| 2015-12-19 15:41 | Gregor Jasny | Status | assigned => resolved | ||
| 2015-12-19 15:41 | Gregor Jasny | Fixed in Version | => CMake 3.3 | ||
| 2015-12-19 15:41 | Gregor Jasny | Resolution | open => fixed | ||
| 2015-12-19 15:41 | Gregor Jasny | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||