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:
parent
976539b4af
commit
82a00471ac
1
src/3rdparty/freetype/CMakeLists.txt
vendored
1
src/3rdparty/freetype/CMakeLists.txt
vendored
@ -61,6 +61,7 @@ endif ()
|
||||
qt_internal_add_3rdparty_library(BundledFreetype
|
||||
QMAKE_LIB_NAME freetype
|
||||
STATIC
|
||||
SKIP_AUTOMOC
|
||||
INSTALL
|
||||
SOURCES
|
||||
${BASE_SRCS}
|
||||
|
1
src/3rdparty/libjpeg/CMakeLists.txt
vendored
1
src/3rdparty/libjpeg/CMakeLists.txt
vendored
@ -1,6 +1,7 @@
|
||||
qt_internal_add_3rdparty_library(BundledLibjpeg
|
||||
QMAKE_LIB_NAME libjpeg
|
||||
STATIC
|
||||
SKIP_AUTOMOC
|
||||
INSTALL
|
||||
SOURCES
|
||||
src/jaricom.c
|
||||
|
1
src/3rdparty/libpng/CMakeLists.txt
vendored
1
src/3rdparty/libpng/CMakeLists.txt
vendored
@ -7,6 +7,7 @@
|
||||
qt_internal_add_3rdparty_library(BundledLibpng
|
||||
QMAKE_LIB_NAME libpng
|
||||
STATIC
|
||||
SKIP_AUTOMOC
|
||||
INSTALL
|
||||
SOURCES
|
||||
png.c
|
||||
|
1
src/3rdparty/pcre2/CMakeLists.txt
vendored
1
src/3rdparty/pcre2/CMakeLists.txt
vendored
@ -7,6 +7,7 @@
|
||||
qt_internal_add_3rdparty_library(BundledPcre2
|
||||
QMAKE_LIB_NAME pcre2
|
||||
STATIC
|
||||
SKIP_AUTOMOC
|
||||
SOURCES
|
||||
src/config.h
|
||||
src/pcre2.h
|
||||
|
1
src/3rdparty/zlib/CMakeLists.txt
vendored
1
src/3rdparty/zlib/CMakeLists.txt
vendored
@ -1,5 +1,6 @@
|
||||
qt_internal_add_3rdparty_library(BundledZLIB
|
||||
STATIC
|
||||
SKIP_AUTOMOC
|
||||
SOURCES
|
||||
src/adler32.c
|
||||
src/compress.c
|
||||
|
Loading…
Reference in New Issue
Block a user