AutoMOC: Long path results in a hang on Windows
With one of our projects in KDE we have been experiencing issues where CMake will hang indefinitely during the AutoMOC phase. After some investigation, we've determined that this is due to the path being too long, as shortening the path where the sources are checked out causes the hang issue to go away.
We have confirmed that 'moc.exe' is in PATH and can be executed successfully, so this isn't the issue.
The project affected by this is Digikam, whose sources can be found at https://invent.kde.org/kde/digikam Only the Windows build was affected - Linux and FreeBSD function fine.
The issue can be reproduced with the following path: C:\CI\workspace\Extragear\digikam\kf5-qt5 WindowsMSVCQt5.14\
Once we switched to this path the issue disappeared: C:\CI\Job Build\
One thing we did note is that only Digikam is affected by this, so it is possible that Digikam is doing something that is triggering this behaviour.