--- CMakeLists.txt.orig	2025-07-21 15:24:24
+++ CMakeLists.txt	2025-07-21 15:28:41
@@ -508,10 +508,10 @@
     )
 endif()
 
-if (WIN32 OR APPLE)
+if (APPLE)
     # On Windows/MacOSX, applications are usually installed on a directory of
     # their own
-    set (DOC_DEFAULT_INSTALL_DIR doc)
+    set (DOC_DEFAULT_INSTALL_DIR share/${CMAKE_PROJECT_NAME}/doc)
     set (LIB_INSTALL_DIR lib)
     set (LIB_ARCH_INSTALL_DIR lib)
 else ()
@@ -556,7 +556,7 @@
     # version), adding its include dirs and libraries, and overwriting ZLIB_FOUND.
     # So if the system's ZLIB was did not meet the our requirements, then there's
     # no safe way to use the system's PNG library.
-    if (NOT APPLE AND ZLIB_FOUND)
+    if (ZLIB_FOUND)
         find_package (PNG)
     endif ()
 
