From 0ed8c2f8eec2a65c1d6f834bffeacab33145dfbc Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 14 May 2026 02:47:34 +0200 Subject: [PATCH] Docu-comment an implicit correctness assumption --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3630ac8..0732bec0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,8 @@ endif() include(FetchContent) include(cmake/deps.cmake) +# Be sure to make zlib available before libpng, otherwise libpng +# will attempt to `find_package(ZLIB)` without going through `FetchContent`. if(NOT DEFINED ZLIB_BUILD_TESTING) # Unless overridden (e.g. in the cache), we don't care about zlib's tests. set(ZLIB_BUILD_TESTING OFF) endif()