Fix zlib dependencies and CMAKE_MODULE_PATH forwarding

This commit is contained in:
tamasmeszaros 2019-12-11 13:51:16 +01:00
parent c91046925a
commit 4a4d8b4e26
7 changed files with 102 additions and 30 deletions

10
deps/ZLIB/ZLIB.cmake vendored Normal file
View file

@ -0,0 +1,10 @@
prusaslicer_add_cmake_project(ZLIB
GIT_REPOSITORY https://github.com/madler/zlib.git
GIT_TAG v1.2.11
PATCH_COMMAND ${GIT_EXECUTABLE} checkout -f -- . && git clean -df &&
${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_LIST_DIR}/0001-Respect-BUILD_SHARED_LIBS.patch
CMAKE_ARGS
-DSKIP_INSTALL_FILES=ON # Prevent installation of man pages et al.
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
)