diff options
| author | Adam Johnson <AdamJohnso@gmail.com> | 2021-01-08 14:07:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 11:07:00 -0800 |
| commit | 1a4c54f1f16a5f290fb55297b2ee5f59fe416928 (patch) | |
| tree | 03de20d73fe27cf16d14db9a72a5f93c55e20a90 /ports/curl | |
| parent | 36cd5101198e0d05407982ce05e20ca854d12435 (diff) | |
| download | vcpkg-1a4c54f1f16a5f290fb55297b2ee5f59fe416928.tar.gz vcpkg-1a4c54f1f16a5f290fb55297b2ee5f59fe416928.zip | |
[vcpkg baseline][poppler] Fix issue with using libcurl. (#15491)
* [poppler] Fix issue with using libcurl.
* [curl] Ensure CMake policy is set for the libcurl config file.
Otherwise, ports using old (eg pre-2.8) CMake minimums might fail when
they import the package.
* [poppler] Add curl feature to test curl vcpkg-cmake-wrapper.
Diffstat (limited to 'ports/curl')
| -rw-r--r-- | ports/curl/CONTROL | 2 | ||||
| -rw-r--r-- | ports/curl/vcpkg-cmake-wrapper.cmake | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ports/curl/CONTROL b/ports/curl/CONTROL index 82698dca9..6253ca7e9 100644 --- a/ports/curl/CONTROL +++ b/ports/curl/CONTROL @@ -1,5 +1,5 @@ Source: curl -Port-Version: 1 +Port-Version: 2 Version: 7.74.0 Build-Depends: zlib Homepage: https://github.com/curl/curl diff --git a/ports/curl/vcpkg-cmake-wrapper.cmake b/ports/curl/vcpkg-cmake-wrapper.cmake index c7fbdba91..955d9353a 100644 --- a/ports/curl/vcpkg-cmake-wrapper.cmake +++ b/ports/curl/vcpkg-cmake-wrapper.cmake @@ -2,6 +2,8 @@ list(REMOVE_ITEM ARGS "NO_MODULE") list(REMOVE_ITEM ARGS "CONFIG") list(REMOVE_ITEM ARGS "MODULE") +cmake_policy(SET CMP0012 NEW) + _find_package(${ARGS} CONFIG) if(TARGET CURL::libcurl) |
