CMAKE_AUTOMOC_RELAXED_MODE¶
在 3.15 版之後被棄用.
Switch between strict and relaxed automoc mode.
By default, AUTOMOC behaves exactly as described in the
documentation of the AUTOMOC target property. When set to
TRUE, it accepts more input and tries to find the correct input file for
moc even if it differs from the documented behavior. In this mode it
e.g. also checks whether a header file is intended to be processed by moc
when a "foo.moc" file has been included.
Relaxed mode has to be enabled for KDE4 compatibility.