mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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