Autogen: Remove support for CMAKE_AUTOMOC_RELAXED_MODE
CMAKE_AUTOMOC_RELAXED_MODE
has officially been deprecated in CMake 3.15.0, but it was still supported.
As a reminder, CMAKE_AUTOMOC_RELAXED_MODE
- allows an include statement
#include <thisFile.moc>
to actually include the headermoc
file instead of the sourcemoc
file. - allows an include statement
#include <moc_thisFile.cpp>
to actually include the sourcemoc
file instead of the headermoc
file.
It was added for compatibility with older KDE4 versions and always triggered a detailed warning that told users how to fix the include
statements.
It should be removed now, since it
- allows obfuscation and ambiguity in targeted code
- brings little value to
AUTOMOC
users - complicates the
AUTOMOC
implementation considerably - has been around for long enough to allow uses fixing their code