Set ZLIB_FOUND ON rather than unset it

Fixes #4854
This commit is contained in:
Ryan Carsten Schmidt 2024-12-03 07:27:41 -06:00
parent f710603f99
commit 2b97e44dfd

View File

@ -200,7 +200,7 @@ endif()
if(USE_SHARED_ZLIB)
find_package(ZLIB REQUIRED)
else()
set(ZLIB_FOUND)
set(ZLIB_FOUND ON)
set(ZLIB_LIBRARY zlibstatic)
set(ZLIB_LIBRARIES ${ZLIB_LIBRARY})
set(ZLIB_INCLUDE_DIRS