Removed dependency on libz on Windows.
This commit is contained in:
parent
fc49abc2a4
commit
ba89a3d1ab
@ -97,7 +97,10 @@ if (SLIC3R_GUI)
|
|||||||
|
|
||||||
# Configure libcurl and its dependencies OpenSSL & zlib
|
# Configure libcurl and its dependencies OpenSSL & zlib
|
||||||
find_package(CURL REQUIRED)
|
find_package(CURL REQUIRED)
|
||||||
|
if (NOT MSVC)
|
||||||
|
# Required by libcurl
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
|
endif()
|
||||||
target_include_directories(slic3r PRIVATE ${CURL_INCLUDE_DIRS})
|
target_include_directories(slic3r PRIVATE ${CURL_INCLUDE_DIRS})
|
||||||
target_link_libraries(slic3r ${CURL_LIBRARIES} ${ZLIB_LIBRARIES})
|
target_link_libraries(slic3r ${CURL_LIBRARIES} ${ZLIB_LIBRARIES})
|
||||||
if (SLIC3R_STATIC)
|
if (SLIC3R_STATIC)
|
||||||
|
Loading…
Reference in New Issue
Block a user