MantisBT - CMake
View Issue Details
0001104CMakepublic2004-08-19 09:202012-03-30 11:48
Brad King 
Bill Hoffman 
lowfeaturealways
closedfixed 
 
 
0001104: Auto-relink support when source is removed
When a source file is removed from a library there is no dependency that tells the library to relink without the extra object file. We can fix this by generating an extra source file for the library that contains some unreferenced dummy symbol. The source file would also contain a comment containing the list of other source files being linked into the library. When this list changes the source file would be modified and the library would relink to include the updated object file. As a side effect the removed source files would not be included in the library (unless there is some incremental linking problem in which case we'll need more flags to the linker to avoid it).

If we do not want to add this as an always-on feature we could have a target property for libraries called something like AUTO_RELINK that enables this feature.
No tags attached.
Issue History
2012-03-30 11:48Eric NOULARDRelationship addedduplicate of 0013072
2012-03-30 13:05Brad KingRelationship deleted0013072

Notes
(0004762)
Alex Neundorf   
2006-08-27 10:40   
I tried and cannot reproduce it with current cmake. AFAIK the libs depend on the makefiles, so it will be linked again.
Ok to close it ?
(0004788)
Brad King   
2006-08-29 09:12   
You're correct, this was fixed by cm*MakefileGenerator3.