MantisBT - CMake
View Issue Details
0008777CMakeCMakepublic2009-03-21 20:272016-06-10 14:30
Daniel Nelson 
Bill Hoffman 
normalfeaturealways
closedmoved 
CMake-2-6 
 
0008777: Let INCLUDE_REGULAR_EXPRESSION match against header file name with enclosing <> or ""
It would be very useful if the string set by the include_regular_expression command was matched against the header file including its enclosing <> or "". This would allow exclusion of includes with the format #include <header>.

The reason for doing this is a huge speed improvement. I had a project that was using precompiled headers and cmake was spending a lot of time doing dependency calculations. The depends.make for only one of about 10 projects had grown to about 15MB, and almost all of the dependencies were being pulled in by the precompiled header file. We didn't really need to trace dependencies into system libraries since they don't change often and when they do, we generally need to rebuild everything anyway. So it was worth the speed boost to skip checking them. After modifying the version of cmake we are using internally to skip all headers included with angle brackets, build times running make went from 10 minutes to 8, and the time to run cmake from 1m20s to about 20s.
No tags attached.
Issue History
2009-03-21 20:27Daniel NelsonNew Issue
2009-03-22 21:53Bill HoffmanStatusnew => assigned
2009-03-22 21:53Bill HoffmanAssigned To => Bill Hoffman
2016-06-10 14:27Kitware RobotNote Added: 0041524
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0041524)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.