Skip to content

Commit bf522c0

Browse files
committed
[png] Do not find zlib within the libPng CMakeLists.txt
1 parent 516031d commit bf522c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

builtins/libpng/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ ExternalProject_Add(
4040
-DCMAKE_CXX_VISIBILITY_PRESET=hidden
4141
-DPNG_SHARED=OFF
4242
-DPNG_STATIC=ON
43-
-DZLIB_INCLUDE_DIR=${ZLIB_INCLUDE_DIRS}
44-
-DZLIB_LIBRARY=${ZLIB_LIBRARIES}
43+
-DZLIB_INCLUDE_DIRS=${ZLIB_INCLUDE_DIRS}
44+
-DZLIB_LIBRARIES=${ZLIB_LIBRARIES}
45+
-DZLIB_FOUND=${ZLIB_FOUND}
4546
BUILD_COMMAND ${CMAKE_COMMAND} --build . ${ROOT_LIBPNG_BUILD_COMMAND_FLAGS}
4647
INSTALL_COMMAND ${CMAKE_COMMAND} --build . ${ROOT_LIBPNG_BUILD_COMMAND_FLAGS} --target install
4748
LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1 LOG_OUTPUT_ON_FAILURE 1

0 commit comments

Comments
 (0)