| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0008581 | CMake | CMake | public | 2009-02-22 17:24 | 2009-03-10 17:39 | ||||
| Reporter | Mark de Wever | ||||||||
| Assigned To | Alex Neundorf | ||||||||
| Priority | normal | Severity | feature | Reproducibility | N/A | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | CMake-2-6 | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0008581: automatically find header files for a c/c++ project | ||||||||
| Description | In this post [1] on the Wesnoth dev-ml Alexander Neundorf suggested to post this feature request here. It would be nice if cmake would be able to automatically try to find a header file belonging to a c/cpp/cxx file. When this file is found it can be added to project based files like MSVC and C::B. This reduces maintenance, since you don't need to add the header files manually and Makefile based projects don't need them. For project based systems it still allows you to easily edit the header file. [1] https://mail.gna.org/public/wesnoth-dev/2009-02/msg00042.html [^] | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0015297) Bill Hoffman (manager) 2009-02-23 16:08 |
I think this would be hard to implement without a serious performance issues. CMake would have to parse the source files at CMake time, and how would you figure out which header files to include in the project? I think the currently manual process is the only workable way of doing this. |
|
(0015622) Alex Neundorf (developer) 2009-03-10 17:39 |
I implemented something for the CodeBlocks generator. If there is a file <SRCDIR>/foo.[c|cxx|cpp|cc|c++|C] in the project, it automatically adds <SRCDIR>/foo.[h|hpp|hcc|hh] also to the project if it exists. Alex |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2009-02-22 17:24 | Mark de Wever | New Issue | |
| 2009-02-23 16:08 | Bill Hoffman | Note Added: 0015297 | |
| 2009-02-23 16:08 | Bill Hoffman | Status | new => assigned |
| 2009-02-23 16:08 | Bill Hoffman | Assigned To | => Alex Neundorf |
| 2009-03-10 17:39 | Alex Neundorf | Note Added: 0015622 | |
| 2009-03-10 17:39 | Alex Neundorf | Status | assigned => closed |
| 2009-03-10 17:39 | Alex Neundorf | Resolution | open => fixed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |