Closed KyleFromKitware closed 3 years ago
KDECMakeSettings.cmake
appears to be from another repository. Should I submit a pull request to that repository, or should I move the CMAKE_AUTOUIC
setting somewhere else, or is a local modification fine?
Closing in favor of fixing the issue on CMake's end.
CMake 3.20 changed the behavior of AUTOMOC in a subtle way (https://gitlab.kitware.com/cmake/cmake/-/issues/21977) which revealed a circular dependency between the autogen target and the files generated by qt5_wrap_ui(). The circular dependency always existed, but did not appear until CMake 3.20 due to a bug in Ninja (https://github.com/ninja-build/ninja/issues/1251).
Resolve this issue by using AUTOUIC as well as AUTOMOC, and not combining the CMake AUTOMOC approach with the Qt qt5_wrap_ui() approach.