HomeFreeBSD

Add a patch to drop CMake calls to QT5_WRAP_CPP().

Description

Add a patch to drop CMake calls to QT5_WRAP_CPP().

cmake/Utils.cmake already sets CMAKE_AUTOMOC to on.

Calling QT5_WRAP_CPP() used to be just redundant, as QUAZIP_MOC_SRC and
LIBQPSD_MOC_SRC were never actually added as source dependencies in
MacBuildTarget.cmake and UnixBuildTarget.cmake. In other words, CMake's own
automoc infrastructure was actually being used and the moc invocations from
QT5_WRAP_CPP() were not being made at all.

Starting with Qt 5.9.4, calling QT5_WRAP_CPP() disables the AUTOMOC property on
the macro's input files, which means neither CMake's automoc infrastructure not
QT5_WRAP_CPP()'s code were being used and we ended up with several 'undefined
reference to vtable' errors when linking.

Sent upstream: https://github.com/nomacs/nomacs/pull/187

PR: 225436

Details

Provenance
rakucoAuthored on
Parents
rP460285: Add a patch to drop CMake calls to QT5_WRAP_CPP().
Branches
Unknown
Tags
Unknown