MantisBT - CMake
View Issue Details
0008642CMakeCMakepublic2009-02-27 15:482009-03-27 12:26
Clinton Stimpson 
Bill Hoffman 
normalminoralways
closedwon't fix 
 
 
0008642: recompile of all files when adding one
if one has

set(SRCS file1.c file2.c ...)
set_source_files_properties(${SRCS} PROPERTIES COMPILE_FLAGS -DUMMY)
add_library(test ${SRCS})

anytime I add a new file to the SRCS list, it recompiles all of them.
It only does this when I have the set_source_files_properties().
this is with the unix makefile generator.

I'd rather it only compile the one new file.
No tags attached.
has duplicate 0008787closed  set_property on sources causing extra files to be rebuilt 
Issue History
2009-02-27 15:48Clinton StimpsonNew Issue
2009-02-27 16:18Bill HoffmanNote Added: 0015464
2009-02-27 16:18Bill HoffmanStatusnew => assigned
2009-02-27 16:18Bill HoffmanAssigned To => Bill Hoffman
2009-03-27 12:25Bill HoffmanRelationship addedhas duplicate 0008787
2009-03-27 12:26Bill HoffmanStatusassigned => closed
2009-03-27 12:26Bill HoffmanResolutionopen => won't fix

Notes
(0015464)
Bill Hoffman   
2009-02-27 16:18   
There is no good way to fix this. Each file depends on the flags.make file, and if you add a flag to one source file, then it will cause a rebuild. We tried a version with one file per object, but it created too many files on disk, and was too slow.