Fix issues with finding new deps on win

This commit is contained in:
tamasmeszaros 2021-07-22 12:38:50 +02:00
parent 7ed0d6b886
commit ca67d880ec
3 changed files with 5 additions and 2 deletions

View file

@ -389,10 +389,13 @@ find_package(CURL REQUIRED)
add_library(libcurl INTERFACE)
target_link_libraries(libcurl INTERFACE CURL::libcurl)
# Fixing curl's cmake config script bugs
if (NOT WIN32)
# Required by libcurl
find_package(ZLIB REQUIRED)
target_link_libraries(libcurl INTERFACE ZLIB::ZLIB)
else()
target_link_libraries(libcurl INTERFACE crypt32)
endif()
if (SLIC3R_STATIC)