|Anonymous | Login||2017-07-27 13:56 EDT|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002389||CMake||CMake||public||2005-10-20 08:58||2006-10-04 14:17|
|Assigned To||Brad King|
|Target Version||Fixed in Version|
|Summary||0002389: A build without dependency reconfiguration option.|
|Description||When make is called (either from the root of the project or a subdirectory) the dependencies determining which files need to be updated can be performed in up to 3 parts.|
1. Changes in configuration files (i.e. CMakeLists.txt) are checked to see if the build process has changed. (Performed by CMake.)
2. Check changes in source code files to see if their dependencies have changed. (Performed by CMake.)
3. Check the dependency tree and determine which sources need to be rebuilt. (Performed by the make program.)
All three parts are necessary at some time or another and should be, by default, be performed any time a compile happens. However, in large projects, parts 1 and 2 cause a sizeable delay for small, incremental compiles. For developers making frequent small, incremental changes to the source code (for example during debugging), waiting for parts 1 and 2 can be frustrating.
There should be some build targets in every directory that allow the user to build all the files but skip parts 1 and 2 of the dependency checking. For example, a target called "noconfig" could skip part 1 and one called "nodep" could skip parts 1 and 2. Of course, these targets would be provided "buyer beware" as skipping these parts increases the likelyhood of compiled code becoming out of sync.
|Tags||No tags attached.|
Alex Neundorf (developer)
Does "make <targetname>/fast" what you want ?
This is available since cmake 2.4.3.
Ken Moreland (reporter)
That almost does what I want. I have been using that feature and it works well. Ideally, I could type "make fast" and that would automatically perform a <targetname>/fast build on all default targets.
Right now I have a little program that writes little scripts in my source directory that will call "make <targetname>/fast" on all of the targets for a particular directory. That works pretty good except that it can actually take longer if it ends up building a bunch of non-default targets.
So apart from that minor detail, which is really just laziness on my part for not typing the targetname on the command prompt each time, I'm happy with the fast targets.
Alex Neundorf (developer)
A target "fast" is not possible, the name would be too generic I think.
But "all/fast" might be possible.
Brad King (manager)
Bug 0003658 is related to this bug.
Bill Hoffman (manager)
|target/fast is now here.|
|Copyright © 2000 - 2017 MantisBT Team|