Skip to content

AUTOUIC: Changes in .ui file are not recognized with VS 2017 generator

  • Windows 10
  • CMake 3.11.0
  • Generator: Visual Studio 15 2017 Win64

The project has CMAKE_AUTOUIC set to ON. One .ui file is added to the project within the add_library() call. When building the project for the first time, the ui_xyz.h header is generated as expected.

After that, when modifying the .ui file, the ui_xyz.h header is not being regenerated, as if the dependency of the header to the .ui file is missing. Only when modifying the header containing the #include "ui_xyz.h", the header gets regenerated using uic.

I'd expect the header to be regenerated every time the .ui file is modified. Maybe there is a relation to #16776.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information