Ninja needs to be run two times to compile changes made in a .ui file
Ninja needs to be run two times to compile changes made in a .ui file
How to reproduce:
Build ParaView completely then
[glow@snowman ~/work/paraview/paraviewSecondary/paraview_build]$ ninja
[14/16] Automatic MOC and UIC for target paraview
[glow@snowman ~/work/paraview/paraviewSecondary/paraview_build]$ touch ../paraview/Qt/ApplicationComponents/Resources/UI/pqAxesToolbar.ui
[glow@snowman ~/work/paraview/paraviewSecondary/paraview_build]$ ninja
[14/16] Automatic MOC and UIC for target paraview -> Here is should have 19 target
[glow@snowman ~/work/paraview/paraviewSecondary/paraview_build]$ ninja
[19/19] Linking CXX executable bin/paraview -> they appears only here
We can see that the .ui modification in only taken into accuont the second time ninja is called.