MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014237 | CMake | CMake | public | 2013-06-20 10:01 | 2013-12-02 08:51 |
| Reporter | Pavel Shramov | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 | ||
| Summary | 0014237: Generated dependency paths may be too long for projects with relative includes | ||||
| Description | When cmake calculates dependencies for C/C++ files with relative include clauses result paths are constructed with simple append header_path + '/' + inner_header_path. This leads to depend file like CMakeFiles/test.dir/test.c.o: ../s1/../s2/f2.h CMakeFiles/test.dir/test.c.o: ../s1/../s2/s2.2/../../s3/f3.h CMakeFiles/test.dir/test.c.o: ../s1/../s2/s2.2/f2.2.h CMakeFiles/test.dir/test.c.o: ../s1/f1.h instead of CMakeFiles/test.dir/test.c.o: ../s1/f1.h CMakeFiles/test.dir/test.c.o: ../s2/f2.h CMakeFiles/test.dir/test.c.o: ../s2/s2.2/f2.2.h CMakeFiles/test.dir/test.c.o: ../s3/f3.h With long chain of includes it may result in broken makefiles with paths larger then MAXPATH on win32 (260 chars). | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/4797/relative.tgz https://public.kitware.com/Bug/file/4802/7c61c73f%2B0001-cmDependsC-Collapse-relative-include-paths.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2013-06-20 10:01 | Pavel Shramov | New Issue | |||
| 2013-06-20 10:02 | Pavel Shramov | File Added: relative.tgz | |||
| 2013-06-20 10:02 | Pavel Shramov | Note Added: 0033355 | |||
| 2013-06-26 10:18 | Brad King | File Added: 7c61c73f+0001-cmDependsC-Collapse-relative-include-paths.patch | |||
| 2013-06-26 10:19 | Brad King | Note Added: 0033384 | |||
| 2013-06-27 04:36 | Pavel Shramov | Note Added: 0033393 | |||
| 2013-07-01 09:52 | Brad King | Note Added: 0033439 | |||
| 2013-07-01 09:52 | Brad King | Assigned To | => Brad King | ||
| 2013-07-01 09:52 | Brad King | Status | new => resolved | ||
| 2013-07-01 09:52 | Brad King | Resolution | open => fixed | ||
| 2013-07-01 09:52 | Brad King | Fixed in Version | => CMake 2.8.12 | ||
| 2013-07-01 09:52 | Brad King | Target Version | => CMake 2.8.12 | ||
| 2013-12-02 08:51 | Robert Maynard | Note Added: 0034625 | |||
| 2013-12-02 08:51 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||