Automoc uses the Debug version of moc
This is a follow up to #25707 (closed).
I'm not sure if/how much code I need to post here.
We use Conan to add Debug and Release builds of Qt 6.6.2.
find_package(Qt6 CONFIG REQUIRED COMPONENTS Core Widgets)
The AutogenInfo.json points to the Debug version of moc.exe.
(There's a .pdb file next to it, and we don't build Release with symbols.)
The documentation of AUTOMOC_EXECUTABLE says
Usually this property does not need to be set. Only consider this property if auto-detection of moc can not work -- e.g. because you are building the moc binary as part of your project.
Edited by Andreas Haferburg