CMake: Don't use AUTOMOC for third party libraries

None of them have Qt sources that need moc-ing.
It's also needed to circumvent an AUTOMOC + PCH issue when AUTOMOC is
enabled for a target that does not have any C++ sources, but the
target links to another target that does have C++ sources.

Pick-to: 6.4
Change-Id: Ib1b2aa766089f093117c1ba34e156dfe8b0957e6
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2022-07-20 19:19:19 +02:00
parent 976539b4af
commit 82a00471ac
5 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,7 @@ endif ()
qt_internal_add_3rdparty_library(BundledFreetype
QMAKE_LIB_NAME freetype
STATIC
SKIP_AUTOMOC
INSTALL
SOURCES
${BASE_SRCS}

View File

@ -1,6 +1,7 @@
qt_internal_add_3rdparty_library(BundledLibjpeg
QMAKE_LIB_NAME libjpeg
STATIC
SKIP_AUTOMOC
INSTALL
SOURCES
src/jaricom.c

View File

@ -7,6 +7,7 @@
qt_internal_add_3rdparty_library(BundledLibpng
QMAKE_LIB_NAME libpng
STATIC
SKIP_AUTOMOC
INSTALL
SOURCES
png.c

View File

@ -7,6 +7,7 @@
qt_internal_add_3rdparty_library(BundledPcre2
QMAKE_LIB_NAME pcre2
STATIC
SKIP_AUTOMOC
SOURCES
src/config.h
src/pcre2.h

View File

@ -1,5 +1,6 @@
qt_internal_add_3rdparty_library(BundledZLIB
STATIC
SKIP_AUTOMOC
SOURCES
src/adler32.c
src/compress.c