View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008581CMakeCMakepublic2009-02-22 17:242009-03-10 17:39
ReporterMark de Wever 
Assigned ToAlex Neundorf 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008581: automatically find header files for a c/c++ project
DescriptionIn 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 [^]
TagsNo tags attached.
Attached Files

 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

 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


Copyright © 2000 - 2018 MantisBT Team