]> git.lyx.org Git - lyx.git/blobdiff - CMakeLists.txt
* es/Intro from Dan.
[lyx.git] / CMakeLists.txt
index 26f182df02052a465652e1844cc37a59568fd6f9..38e11b8a0b4707a936f1655be47d17111ca44503 100644 (file)
@@ -833,11 +833,17 @@ if(LYX_USE_QT MATCHES "QT6|QT5")
                endif()
                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})
+                       #find_package(Qt6 COMPONENTS Core5Compat REQUIRED)
+                       # We don't know why QtZlib is included, and ideally we
+                       # would have a different fix than relying on this
+                       # variable (which as "Private" in the name indicates,
+                       # it might be a fragile workaround).
+                       # See ML discussion here:
+                       # https://www.mail-archive.com/search?l=mid&q=CAGU9VOqpkngYBumnNh%3DcuzQ585GsS7TJbhHa903nJSfy-davRg%40mail.gmail.com
+                       list(REMOVE_ITEM Qt6Core5Compat_INCLUDE_DIRS ${_Qt6ZlibPrivate_OWN_INCLUDE_DIRS})
                        include_directories(${Qt6Core5Compat_INCLUDE_DIRS})
-                       set(QtCore5CompatLibrary Qt6::Core5Compat)
-                       set(QtCore5CompatModule Core5Compat)
+                       #set(QtCore5CompatLibrary Qt6::Core5Compat)
+                       #set(QtCore5CompatModule Core5Compat)
                endif()
        endif()
 else()