[curl] Add nghttp2.lib to dependencies of curl

This commit is contained in:
Robert Schumacher 2018-02-07 17:02:47 -08:00
parent 71025694e9
commit 676c861ae6

View File

@ -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()