View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008642CMakeCMakepublic2009-02-27 15:482009-03-27 12:26
ReporterClinton Stimpson 
Assigned ToBill Hoffman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0008642: recompile of all files when adding one
Descriptionif 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.
TagsNo tags attached.
Attached Files

 Relationships
has duplicate 0008787closed set_property on sources causing extra files to be rebuilt 

  Notes
(0015464)
Bill Hoffman (manager)
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.

 Issue History
Date Modified Username Field Change
2009-02-27 15:48 Clinton Stimpson New Issue
2009-02-27 16:18 Bill Hoffman Note Added: 0015464
2009-02-27 16:18 Bill Hoffman Status new => assigned
2009-02-27 16:18 Bill Hoffman Assigned To => Bill Hoffman
2009-03-27 12:25 Bill Hoffman Relationship added has duplicate 0008787
2009-03-27 12:26 Bill Hoffman Status assigned => closed
2009-03-27 12:26 Bill Hoffman Resolution open => won't fix


Copyright © 2000 - 2018 MantisBT Team