- 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})