Files
cmake/Tests/QtAutogen/RerunMocOnAddFile
Joerg Bornemann 2256eb36fb Tests: Work around Xcode ZERO_CHECK limitation in RerunMocOnAddFile test
The Xcode build system creates its build plan at the start of a build
and does not re-read the project file when ZERO_CHECK regenerates it
mid-build. New source files added to CMakeLists.txt are silently
skipped, causing linker errors with Qt6 (whose moc generates metatype
code that references the class constructor).

Work around that issue by explicitly re-running CMake before building
when using the Xcode generator so the project file includes the new
sources before xcodebuild starts.

Fixes: #27358
Issue: #27611
2026-02-16 10:15:35 -05:00
..