We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c26cce9 commit ed62f2fCopy full SHA for ed62f2f
ThirdParty/CMakeLists.txt
@@ -37,7 +37,6 @@ if (NOT TARGET ZLIB::ZLIB)
37
endif()
38
39
if (NOT TARGET PNG::PNG)
40
- set(PNG_BUILD_ZLIB ON CACHE BOOL "Use find_package(zlib) to find ZLib location")
41
set(PNG_SHARED OFF CACHE BOOL "Build shared version of libpng")
42
set(PNG_TOOLS OFF CACHE BOOL "Build libpng tools")
43
set(PNG_TESTS OFF CACHE BOOL "Build libpng tests")
ThirdParty/libpng
ThirdParty/zlib.cmake
@@ -3,6 +3,7 @@ cmake_minimum_required (VERSION 3.10)
3
project(ZLib C)
4
5
set(ZLIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zlib)
6
+set(ZLIB_ROOT ${ZLIB_DIR} CACHE PATH "zlib root directory" FORCE)
7
8
set(ZLIB_SOURCE
9
${ZLIB_DIR}/adler32.c
0 commit comments