Hello !
This tiny patch changes the behaviour of cpptasks when
trying to moc a header file without a QObject tag.
The current behaviour is to generate a warning of type
'Unrecognized file type ... will be passed to linker'.
By changing the default bid value of the
MetaObjectCompiler to 1 instead of 0 the warning will
be issued by moc.exe instead.
The great benefit is that warnings from moc can be
deactivated using the -nw switch, this way a whole
fileset can be sent to the cpptasks moc compiler
without the user having to manually list one by one the
files to actually moc.
The only drawback is that moc.exe outputs an empty file
for each input it is unable to process.
I feel like the benefit is greater than the drawback,
anyway the user can still manually specify each of the
files to moc...
Thanks !
MAT.