From 676c861ae65569058014ac5367447464f1fb0877 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Wed, 7 Feb 2018 17:02:47 -0800 Subject: [PATCH] [curl] Add nghttp2.lib to dependencies of curl --- scripts/buildsystems/vcpkg.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake index 76d77a0b5b..9fbc24ad70 100644 --- a/scripts/buildsystems/vcpkg.cmake +++ b/scripts/buildsystems/vcpkg.cmake @@ -225,6 +225,15 @@ macro(find_package name) endif() elseif("${name}" STREQUAL "HDF5") _find_package(${ARGV} CONFIG) + elseif("${name}" STREQUAL "CURL") + _find_package(${ARGV}) + if(CURL_FOUND) + if(EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/nghttp2.lib") + list(APPEND CURL_LIBRARIES + "debug" "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib/nghttp2.lib" + "optimized" "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/nghttp2.lib") + endif() + endif() else() _find_package(${ARGV}) endif()