Skip to content

Commit e2ab09d

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

builtins/libpng/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ 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_ROOT=${ZLIB_INCLUDE_DIRS}/../
4544
BUILD_COMMAND ${CMAKE_COMMAND} --build . ${ROOT_LIBPNG_BUILD_COMMAND_FLAGS}
4645
INSTALL_COMMAND ${CMAKE_COMMAND} --build . ${ROOT_LIBPNG_BUILD_COMMAND_FLAGS} --target install
4746
LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1 LOG_OUTPUT_ON_FAILURE 1

0 commit comments

Comments
 (0)