qt4_wrap_cpp didn't include common moc options in per-config parameter file
I'm using qt4_wrap_cpp(moc_srcs MyDialog.h TARGET Qt4::QtGui) to generate moc files, but found compile definitions of Qt4::QtGui (-DQT_GUI_LIB) only goes into common parameter file moc_MyDialog.cxx_parameters but didn't appears in per-config parameter file moc_MyDialog.cxx_parameters_RelWithDebInfo,
and ninja generator generated commands to run moc is
D:\qt\bin\moc.exe @D:/xxx/moc_MyDialog.cxx_parameters_RelWithDebInfo
this leads incorrect define options when building moc files.
version is 3.10.0-rc2
---update----
I might try different cmake file multi times( with qt4_wrap_cpp(mocs header.h TARGET Qt4::QtGui) and qt4_wrap_cpp(mocs header.h OPTIONS -DQT_GUI_LIB) ) , so "compile definitions of Qt4::QtGui(-DQT_GUI_LIB) only goes into common parameter file" may not be true. when I test this in a demo project, I found if using
qt4_wrap_cpp(mocs header.h TARGET Qt4::QtGui)
neither common file nor per-config file contains these flags.