Skip to content

Commit

Permalink
Fixed: png compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNicker committed Oct 22, 2023
1 parent d73ecb6 commit 461f66f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Codecs/CodecPNG/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ endif()


add_subdirectory(${zlibFolder} ./external/zlib)
set(ZLIB_INCLUDE_DIRS ${zlibFolder})

list(APPEND ZLIB_INCLUDE_DIRS "${zlibFolder}")
list(APPEND ZLIB_INCLUDE_DIRS "${CMAKE_CURRENT_BINARY_DIR}/external/zlib")
set(ZLIB_LIBRARIES zlib)

#LibPNG
option(PNG_SHARED "Build shared lib" ON)
option(PNG_STATIC "Build static lib" OFF)
option(PNG_TESTS "Build libpng tests" OFF)
option(PNG_FIX "Build pngfix" OFF)
option(PNG_FIX_ITXT "Build pngfix itext" OFF)
option(PNG_EXECUTABLES "Build libpng executables" OFF)
option(PNG_BUILD_ZLIB "Custom zlib Location, else find_package is used" ON)


Expand Down
2 changes: 1 addition & 1 deletion External/libpng
Submodule libpng updated 1 files
+6 −12 CMakeLists.txt

0 comments on commit 461f66f

Please sign in to comment.