From: Eugene Chornyi Date: Fri, 16 Dec 2022 20:16:05 +0000 (+0100) Subject: fix issue with zlib linkage error when using Qt6 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=26a3a085114502c1d198898797f1e6ab20e46bb9;p=features.git fix issue with zlib linkage error when using Qt6 Remove QtZlib include folder from targets --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a9c428d4a..26f182df02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -834,6 +834,7 @@ if(LYX_USE_QT MATCHES "QT6|QT5") if (LYX_USE_QT MATCHES "QT6") get_target_property(QT_MOC_EXECUTABLE Qt6::moc LOCATION) find_package(Qt6 COMPONENTS Core5Compat REQUIRED) + list(REMOVE_ITEM Qt6Core5Compat_INCLUDE_DIRS ${_Qt6ZlibPrivate_OWN_INCLUDE_DIRS}) include_directories(${Qt6Core5Compat_INCLUDE_DIRS}) set(QtCore5CompatLibrary Qt6::Core5Compat) set(QtCore5CompatModule Core5Compat)