vcpkg/ports/curl/0006_fix_tool_depends.patch
2019-10-25 14:28:11 -07:00

23 lines
588 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 63e2b94..b376cd1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -40,6 +40,8 @@ if(MSVC)
list(APPEND CURL_FILES curl.rc)
endif()
+find_package(ZLIB REQUIRED)
+
# CURL_FILES comes from Makefile.inc
add_executable(
${EXE_NAME}
@@ -59,7 +61,7 @@ include_directories(
)
#Build curl executable
-target_link_libraries(${EXE_NAME} libcurl ${CURL_LIBS})
+target_link_libraries(${EXE_NAME} libcurl ${CURL_LIBS} ZLIB::ZLIB)
################################################################################