Description | 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. |