Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,191
    • Issues 3,191
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #17959

Closed
Open
Opened May 03, 2018 by Ghost User@ghostContributor

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 admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#17959