ZLIB.cmake 487 B

1234567891011
  1. prusaslicer_add_cmake_project(ZLIB
  2. # GIT_REPOSITORY https://github.com/madler/zlib.git
  3. # GIT_TAG v1.2.11
  4. URL https://github.com/madler/zlib/archive/refs/tags/v1.2.11.zip
  5. URL_HASH SHA256=f5cc4ab910db99b2bdbba39ebbdc225ffc2aa04b4057bc2817f1b94b6978cfc3
  6. PATCH_COMMAND ${PATCH_CMD} ${CMAKE_CURRENT_LIST_DIR}/0001-Respect-BUILD_SHARED_LIBS.patch
  7. CMAKE_ARGS
  8. -DSKIP_INSTALL_FILES=ON # Prevent installation of man pages et al.
  9. -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  10. )