Add REQUIRED to FIND_PACKAGE(ZLIB)

master
willson-chen 2020-05-08 11:39:42 +08:00 committed by Mike Frysinger
parent 78b1f2bdf3
commit 2ba27b5db3
1 changed files with 2 additions and 2 deletions

View File

@ -101,11 +101,11 @@ else (USE_EXT_GD)
include(CheckPrototypeExists)
if (ENABLE_GD_FORMATS)
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(ZLIB REQUIRED)
endif (ENABLE_GD_FORMATS)
if (ENABLE_PNG)
FIND_PACKAGE(ZLIB)
FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(PNG REQUIRED)
endif (ENABLE_PNG)