View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014650 | CMake | CMake | public | 2013-12-16 03:22 | 2016-06-10 14:31 | ||||
Reporter | Lars | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 2.8.12 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014650: Depend.make content | ||||||||
Description | Building our software is very slow using CMake 2.8.12.1 and VS2005. Debugging this issue I discovered the several of the depend.make files are huge. One example is a depend.make file that is roughly 10 MB. It appears the dependency scanner in cmake does not take into account preprocessor directive, so including one boost header in a translation unit can cause this translation unit to depend on several 100s of boost files. In our case, each translation unit dependent on 1000 or more boost header files. Adding the following code solved the issue for boost; include_regular_expression("^([^b]|b[^o]|bo[^o]|boo[^s]|boos[^t]|boost[^/]).*$") (this line reduced the build time by more than 50%) This is is a limited solution because it only works on part of the header path. We have other third party tools that we would like to filter out of the depend.make file, for instance Qt. How do we accomplish that? A suggestion from Nils Gladitz; "Maybe CMake could filter out includes in system directories (like gcc -MM does). System directories in this case could be directories added with e.g. include_directories(SYSTEM)." | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0042449) Kitware Robot (administrator) 2016-06-10 14:29 |
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. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-12-16 03:22 | Lars | New Issue | |
2013-12-18 11:07 | Brad King | Relationship added | related to 0014648 |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042449 | |
2016-06-10 14:29 | Kitware Robot | Status | new => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |