MantisBT - CMake
View Issue Details
0016049CMakeCMakepublic2016-04-05 14:492016-06-10 14:21
Vidar Meland Ødegård 
Brad King 
highminoralways
closedfixed 
LinuxUbuntu14.04
CMake 3.5 
CMake 3.5.2CMake 3.5.2 
0016049: Resources generated with autorcc are always rebuilt using ninja
By using ninja and autorcc the resources are always rebuilt on CMake >= 3.5. CMake 3.4.3 does not have this issue.
cmake <source> -GNinja
ninja -v
No tags attached.
gz bug.tar.gz (346) 2016-04-05 14:49
https://public.kitware.com/Bug/file/5668/bug.tar.gz
Issue History
2016-04-05 14:49Vidar Meland ØdegårdNew Issue
2016-04-05 14:49Vidar Meland ØdegårdFile Added: bug.tar.gz
2016-04-05 15:30Brad KingAssigned To => Brad King
2016-04-05 15:30Brad KingStatusnew => assigned
2016-04-05 15:30Brad KingTarget Version => CMake 3.5.2
2016-04-05 16:30Brad KingNote Added: 0040818
2016-04-05 16:32Brad KingNote Added: 0040819
2016-04-05 16:32Brad KingStatusassigned => resolved
2016-04-05 16:32Brad KingResolutionopen => fixed
2016-04-05 16:32Brad KingFixed in Version => CMake 3.5.2
2016-06-10 14:21Kitware RobotNote Added: 0041200
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0040818)
Brad King   
2016-04-05 16:30   
Thanks. The culprit is:

 Ninja: Always re-run custom commands that have symbolic dependencies
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3477b26f [^]

Here is a fix and a test case:

 Ninja: Fix detection of custom command symbolic outputs
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ff805113 [^]

 Ninja: Restat custom command byproducts even with a SYMBOLIC output
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=add7abc8 [^]
(0040819)
Brad King   
2016-04-05 16:32   
I've queued this fix for merge to 'release' for inclusion in 3.5.2.
(0041200)
Kitware Robot   
2016-06-10 14:21   
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.