MantisBT - CMake
View Issue Details
0014152CMakeCMakepublic2013-05-17 00:332013-10-07 10:09
Craig Scott 
Brad King 
normalminoralways
closedduplicate 
Linux (64-bit)Fedora16
CMake 2.8.10.1 
 
0014152: Comment change in flags.make triggers unnecessary rebuilds
Let's say you have a set of source files and you use set_source_files_properties() to set COMPILER_DEFINITIONS on just one of those files. If you change that definition, it results in *all* the files getting rebuilt. This is because the makefile generator adds a comment to the flags.make file stating the custom define. The actual flags are unchanged, but because the comment changes, make rebuilds all the sources because those sources depend on the contents/timestamp of flags.make. I would recommend that the custom defines NOT be included in a comment within the flags.make file to avoid this. Maybe those comments can be sent to a separate file which has no effect on the build, since they are just informational anyway?
No tags attached.
duplicate of 0005473closed Kitware Robot rebuild always triggered when using SET_SOURCE_FILES_PROPERTIES 
Issue History
2013-05-17 00:33Craig ScottNew Issue
2013-05-17 08:16Brad KingRelationship addedduplicate of 0005473
2013-05-17 08:16Brad KingStatusnew => resolved
2013-05-17 08:16Brad KingResolutionopen => duplicate
2013-05-17 08:16Brad KingAssigned To => Brad King
2013-10-07 10:09Robert MaynardNote Added: 0034050
2013-10-07 10:09Robert MaynardStatusresolved => closed

Notes
(0034050)
Robert Maynard   
2013-10-07 10:09   
Closing resolved issues that have not been updated in more than 4 months.