aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-07 17:02:47 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-07 17:03:14 -0800
commit676c861ae65569058014ac5367447464f1fb0877 (patch)
tree6de9da01fcaec8257f76fd5b8727145eb0428988 /scripts
parent71025694e9c3fe1c1843bbb8f41bfecc19d4a931 (diff)
downloadvcpkg-676c861ae65569058014ac5367447464f1fb0877.tar.gz
vcpkg-676c861ae65569058014ac5367447464f1fb0877.zip
[curl] Add nghttp2.lib to dependencies of curl
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildsystems/vcpkg.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/buildsystems/vcpkg.cmake b/scripts/buildsystems/vcpkg.cmake
index 76d77a0b5..9fbc24ad7 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()